toqito.matrix_props.is_positive =============================== .. py:module:: toqito.matrix_props.is_positive .. autoapi-nested-parse:: Checks if the matrix is positive. Module Contents --------------- .. py:function:: is_positive(input_mat) Check if the matrix is positive. When all the entries in the matrix are larger than zero the matrix of interest is a positive matrix [@WikiNonNegative]. !!! note This function is different from [`is_positive_definite`][toqito.matrix_props.is_positive_definite], [`is_totally_positive`][toqito.matrix_props.is_totally_positive] and [`is_positive_semidefinite`][toqito.matrix_props.is_positive_semidefinite]. .. rubric:: Examples We expect a matrix full of 1s to be positive. ```python exec="1" source="above" import numpy as np from toqito.matrix_props import is_positive input_mat = np.array([[1, 1, 1],[1, 1, 1],[1, 1, 1]]) print(is_positive(input_mat)) ``` :param input_mat: Matrix of interest.