Skip to content

Commit

Permalink
Add correct size tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sethaxen committed Nov 30, 2023
1 parent 1f09c6f commit a4f2086
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/woodbury.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ test_factorization(W::WoodburyPDMat) = test_factorization(W.A, W.B, W.D, W.F)
end
R = @inferred WoodburyPDRightFactor(U, Q, V)
@test R isa AbstractMatrix{T}
@test size(R) == (n, n)
@test size(R, 1) == n
@test size(R, 2) == n
@test size(R, 3) == 1
@test transpose(transpose(R)) === R
@test adjoint(adjoint(R)) === R
@test @inferred(Matrix(R)) Rmat
Expand Down Expand Up @@ -86,6 +82,10 @@ test_factorization(W::WoodburyPDMat) = test_factorization(W.A, W.B, W.D, W.F)
Fmat = Rmat' * Rmat
F = @inferred WoodburyPDFactorization(U, Q, V)
@test F isa LinearAlgebra.Factorization{T}
@test size(F) == (n, n)
@test size(F, 1) == n
@test size(F, 2) == n
@test size(F, 3) == 1
@test transpose(F) === F
@test adjoint(F) === F
@test propertynames(F) == (:L, :R)
Expand Down

0 comments on commit a4f2086

Please sign in to comment.