Skip to content

Commit

Permalink
Merge pull request #27820 from JuliaLang/fe/arpack
Browse files Browse the repository at this point in the history
better error message for eigen(::SparseMatrixCSC)
  • Loading branch information
Sacha0 authored Jun 27, 2018
2 parents 56aef4f + c59d37b commit 8c70b0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stdlib/SparseArrays/src/linalg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1005,4 +1005,5 @@ function factorize(A::LinearAlgebra.RealHermSymComplexHerm{Float64,<:SparseMatri
end
end

eigen(A::SparseMatrixCSC) = error("Use IterativeEigensolvers.eigs() instead of eigen() for sparse matrices.")
eigen(A::SparseMatrixCSC) =
error("eigen(A) not supported for sparse matrices. Use for example eigs(A) from the Arpack package instead.")

0 comments on commit 8c70b0a

Please sign in to comment.