Skip to content

Commit

Permalink
cast to Float64 directly instead of using float (#521)
Browse files Browse the repository at this point in the history
Closes #515
  • Loading branch information
SobhanMP authored Mar 10, 2024
1 parent a5e95ec commit 78dde4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solvers/spqr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ LinearAlgebra.qr(A::Union{SparseMatrixCSC{T},SparseMatrixCSC{Complex{T}}};
"Try qr(convert(SparseMatrixCSC{Float64/ComplexF64, Int}, A)) for ",
"sparse floating point QR using SPQR or qr(Array(A)) for generic ",
"dense QR.")))
LinearAlgebra.qr(A::SparseMatrixCSC; tol=_default_tol(A)) = qr(float(A); tol=tol)
LinearAlgebra.qr(A::SparseMatrixCSC; tol=_default_tol(A)) = qr(Float64.(A); tol=tol)
LinearAlgebra.qr(::SparseMatrixCSC, ::LinearAlgebra.PivotingStrategy) = error("Pivoting Strategies are not supported by `SparseMatrixCSC`s")
LinearAlgebra.qr(A::FixedSparseCSC; tol=_default_tol(A), ordering=ORDERING_DEFAULT) =
let B=A
Expand Down

0 comments on commit 78dde4c

Please sign in to comment.