Skip to content

Commit 689eafa

Browse files
kshyattlkdvos
andauthored
Update src/linalg/factorizations.jl
Co-authored-by: Lukas Devos <ldevos98@gmail.com>
1 parent 9ba6e72 commit 689eafa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linalg/factorizations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function MatrixAlgebraKit.one!(A::BlockBlasMat)
1313
n_blocks = blocksize(A)[1]
1414
# awful workaround to BlockArrays indexing interface
1515
for bi in 1:n_blocks
16-
A[Block(bi), Block(bi)] .= diagm(fill(_one, blocksizes(A)[bi, bi][1]))
16+
MAK.one!(A[Block(bi), Block(bi)])
1717
end
1818
return A
1919
end

0 commit comments

Comments
 (0)