Skip to content

Commit bd87ae4

Browse files
Fix Cholesky Instance with pivot on SparseMatrixCSC to match the interface
1 parent e1870b7 commit bd87ae4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ArrayInterface.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ _cycle(repetend, len) = repeat(repetend, div(len, length(repetend)) + 1)[1:len]
443443
"""
444444
bunchkaufman_instance(A, pivot = LinearAlgebra.RowMaximum()) -> bunchkaufman_factorization_instance
445445
446-
Returns an instance of the Cholesky factorization object with the correct type
446+
Returns an instance of the Bunch-Kaufman factorization object with the correct type
447447
cheaply.
448448
"""
449449
function bunchkaufman_instance(A::Matrix{T}) where T
@@ -476,7 +476,7 @@ cheaply.
476476
function cholesky_instance(A::Matrix{T}, pivot = LinearAlgebra.RowMaximum()) where {T}
477477
return cholesky(similar(A, 0, 0), pivot, check = false)
478478
end
479-
function cholesky_instance(A::SparseMatrixCSC)
479+
function cholesky_instance(A::SparseMatrixCSC, pivot = LinearAlgebra.RowMaximum())
480480
cholesky(sparse(similar(A, 1, 1)), check = false)
481481
end
482482

0 commit comments

Comments
 (0)