We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7762340 commit 335900aCopy full SHA for 335900a
1 file changed
src/stationary_sparse.jl
@@ -12,8 +12,8 @@ struct DiagonalIndices{Tv, Ti <: Integer}
12
diag = Vector{Ti}(undef, A.n)
13
14
for col = 1 : A.n
15
- r1 = Int64(A.colptr[col])
16
- r2 = Int64(A.colptr[col + 1] - 1)
+ r1 = Int(A.colptr[col])
+ r2 = Int(A.colptr[col + 1] - 1)
17
r1 = searchsortedfirst(A.rowval, col, r1, r2, Base.Order.Forward)
18
if r1 > r2 || A.rowval[r1] != col || iszero(A.nzval[r1])
19
throw(LinearAlgebra.SingularException(col))
0 commit comments