Checks if a matrix is square and stochastic
Checks whether a matrix is square and stochastic
mdp_check_square_stochastic checks if the matrix (X) is square and stochastic (sums of rows equal to 1). If it is the case, the function returns an empty error message. In the opposite case, the function returns an error message describing the problem.
Returns a character string which is empty if the matrix is square and stochastic. In the opposite case, the variable contains problem information.
1 2 3
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.