Skip to content

Commit 0b157d1

Browse files
committed
Small fix
1 parent 534decb commit 0b157d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/factorizations/qr.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function MatrixAlgebraKit.initialize_output(
5252
for bI in eachblockstoredindex(A)
5353
row, col = Int.(Tuple(bI))
5454
len = minimum(length, (brows[row], bcols[col]))
55-
r_axes[col] = bcols[col][Base.OneTo(len)]
55+
r_axes[col] = brows[row][Base.OneTo(len)]
5656
end
5757

5858
# fill in values for blocks that aren't present, pairing them in order of occurence
@@ -61,7 +61,7 @@ function MatrixAlgebraKit.initialize_output(
6161
emptycols = setdiff(1:bn, bcolIs)
6262
for (row, col) in zip(emptyrows, emptycols)
6363
len = minimum(length, (brows[row], bcols[col]))
64-
r_axes[col] = bcols[col][Base.OneTo(len)]
64+
r_axes[col] = brows[row][Base.OneTo(len)]
6565
end
6666

6767
r_axis = mortar_axis(r_axes)

0 commit comments

Comments
 (0)