Skip to content

Commit d4fe33e

Browse files
committed
Try fixing tests
1 parent faaadf9 commit d4fe33e

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/BlockArraysExtensions/blockedunitrange.jl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,17 @@ using BlockArrays:
1616
findblockindex,
1717
mortar
1818

19+
# Get the axes of each block of a block array.
20+
function eachblockaxes(a::AbstractArray)
21+
return map(axes, blocks(a))
22+
end
23+
24+
axis(a::AbstractVector) = axes(a, 1)
25+
1926
# Get the axis of each block of a blocked unit
2027
# range.
21-
function eachblockaxis(a::AbstractUnitRange)
22-
return map(only axes, blocks(a))
28+
function eachblockaxis(a::AbstractVector)
29+
return map(axis, blocks(a))
2330
end
2431

2532
# Take a collection of axes and mortar them

src/factorizations/svd.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ function _similar_S(A::AbstractBlockSparseMatrix, s_axis)
2929
end
3030

3131
function similar_output(
32-
::typeof(svd_compact!), A, s_axis::AbstractUnitRange, alg::MatrixAlgebraKit.Algorithm
32+
::typeof(svd_compact!),
33+
A,
34+
s_axis::AbstractUnitRange,
35+
alg::MatrixAlgebraKit.AbstractAlgorithm,
3336
)
3437
U = similar(A, axes(A, 1), s_axis)
3538
S = _similar_S(A, s_axis)

0 commit comments

Comments
 (0)