Skip to content

Commit af49355

Browse files
committed
start Y + I tests
1 parent b77c57f commit af49355

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/InfiniteLinearAlgebra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pad(c::Transpose, ax, bx) = transpose(pad(parent(c), bx, ax))
118118
pad(c::Adjoint, ax, bx) = adjoint(pad(parent(c), bx, ax))
119119
pad(c::BlockVec, ax::BlockedOneTo{Int,<:InfStepRange}) = BlockVec(pad(c.args[1], size(c.args[1],1), ∞))
120120

121-
export ∞, ContinuousSpectrumError, BlockTridiagonal
121+
export ∞, ContinuousSpectrumError, BlockTridiagonal, TridiagonalConjugation, BidiagonalConjugation
122122

123123
include("banded/hessenbergq.jl")
124124

src/infcholesky.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ adaptivecholeskyfactorslayout(::BlockBandedLayouts) = AdaptiveCholeskyFactorsBlo
2929

3030

3131
MemoryLayout(::Type{AdaptiveCholeskyFactors{T,DM}}) where {T,DM} = adaptivecholeskyfactorslayout(MemoryLayout(DM))
32+
triangularlayout(::Type{Tri}, ::ML) where {Tri, ML<:AdaptiveCholeskyFactorsLayouts} = Tri{ML}()
33+
transposelayout(A::AdaptiveCholeskyFactorsLayouts) = A
3234

3335
copy(A::AdaptiveCholeskyFactors) = AdaptiveCholeskyFactors(copy(A.data), copy(A.ncols))
3436
copy(A::Adjoint{T,<:AdaptiveCholeskyFactors}) where T = copy(parent(A))'

test/test_bidiagonalconjugation.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,5 +192,12 @@ end
192192
Y = SymTridiagonalConjugation(R, X)
193193
n = 100_000
194194
@test Y[n,n+1] 1/2
195+
196+
@testset "Y+I" begin
197+
Y+I
198+
Y-I
199+
I+Y
200+
I-Y
201+
end
195202
end
196203
end

0 commit comments

Comments
 (0)