Base.cond
and Base.SparseMatrix.cond
don't not always check if input matrix is square
#12731
Labels
sparse
Sparse arrays
When attempting to compute the condition number of a rectangular matrix,
Base.cond
does not always fail, but when it fails it does not always fail for the right reasons:For rectangular matrices
cond
simply returnInf
or raise an error (although I thinkArgumentError
would be more appropriate).The text was updated successfully, but these errors were encountered: