Skip to content

Commit cc01b00

Browse files
bigfloat factorizations may not exist
1 parent c7dacc9 commit cc01b00

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/core.jl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,15 @@ end
262262

263263
@testset "linearalgebra instances" begin
264264
for A in [rand(2,2), rand(Float32,2,2), rand(BigFloat,2,2)]
265-
@test ArrayInterface.bunchkaufman_instance(A) isa typeof(bunchkaufman(A' * A))
266-
@test ArrayInterface.cholesky_instance(A) isa typeof(cholesky(A' * A))
267-
@test ArrayInterface.ldlt_instance(A) isa typeof(ldlt(SymTridiagonal(A' * A)))
265+
268266
@test ArrayInterface.lu_instance(A) isa typeof(lu(A))
269267
@test ArrayInterface.qr_instance(A) isa typeof(qr(A))
270-
@test ArrayInterface.svd_instance(A) isa typeof(svd(A))
268+
269+
if !(eltype(A) isa BigFloat)
270+
@test ArrayInterface.bunchkaufman_instance(A) isa typeof(bunchkaufman(A' * A))
271+
@test ArrayInterface.cholesky_instance(A) isa typeof(cholesky(A' * A))
272+
@test ArrayInterface.ldlt_instance(A) isa typeof(ldlt(SymTridiagonal(A' * A)))
273+
@test ArrayInterface.svd_instance(A) isa typeof(svd(A))
274+
end
271275
end
272276
end

0 commit comments

Comments
 (0)