We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30201ab commit cff971dCopy full SHA for cff971d
src/linalg.jl
@@ -1577,7 +1577,7 @@ function cond(A::AbstractSparseMatrixCSC, p::Real=2)
1577
normA = opnorm(A, Inf)
1578
return normA * normAinv
1579
elseif p == 2
1580
- throw(ArgumentError("2-norm condition number is not implemented for sparse matrices, try cond(Array(A), 2) instead"))
+ throw(ArgumentError("only 1- and Inf-norm condition numbers are implemented for sparse matrices, for 2-norm try cond(Array(A), 2) instead"))
1581
else
1582
throw(ArgumentError("second argument must be either 1 or Inf, got $p"))
1583
end
0 commit comments