We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac30196 commit d88a5d8Copy full SHA for d88a5d8
1 file changed
src/linalg/factorizations.jl
@@ -16,6 +16,8 @@ function MatrixAlgebraKit.zero!(A::BlockBlasMat)
16
end
17
18
function MatrixAlgebraKit.one!(A::BlockBlasMat)
19
+ mb, nb = blocksize(A)
20
+ mb == nb || throw(DimensionMismatch("A is not block-square. Number of row-blocks ($mb) does not match number of column-blocks ($nb)"))
21
for bj in blockaxes(A, 2), bi in blockaxes(A, 1)
22
a = view(A, bi, bj)
23
bi == bj ? MAK.one!(a) : MAK.zero!(a)
0 commit comments