MatrixRank check whether a matrix is triangular?
If not, what would be the best way to calculate a matrix rank of a (say upper)triangular matrix in the following practical cases:
- you have a lot of small matrices,
- you have a huge dense matrix, and
- you have a huge sparse matrix?
(Here dense means dense above/below the diagonal)