matrix_props.is_positive ======================== .. py:module:: matrix_props.is_positive .. autoapi-nested-parse:: Checks if the matrix is positive. Functions --------- .. autoapisummary:: matrix_props.is_positive.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 :cite:`WikiNonNegative`. .. note:: This function is different from :any:`matrix_props.is_positive_definite`, :any:`matrix_props.is_totally_positive` and :any:`matrix_props.is_positive_semidefinite`. .. rubric:: Examples We expect a matrix full of 1s to be positive. .. jupyter-execute:: import numpy as np from toqito.matrix_props import is_positive input_mat = np.array([[1, 1, 1],[1, 1, 1],[1, 1, 1]]) is_positive(input_mat) .. rubric:: References .. bibliography:: :filter: docname in docnames input_mat: np.ndarray Matrix of interest.