matrix_is_sorted#

pybrops.core.util.subroutines.matrix_is_sorted(mat)[source]#

Determine if a matrix is sorted in ascending order.

Parameters:

mat (numpy.ndarray) – Input matrix.

Returns:

outTrue if the matrix is sorted in ascending order, otherwise False.

Return type:

bool