Closed SamoylovMD closed 9 years ago
Also, it could be used widely in algorithms testing, for example when we use Cholesky decomposer, we need to check the argument is symmetric and the result is lower-triangular.
We do have Matrix.is
method that takes a MatrixPredicate
and does exactly what you described.
So, matrices can have some special forms, i.e. identical, diagonal, symmetric, skew-symmetric, upper/lower triangular. So, we could add these methods to
Matrix
interface: