Skip to content

Commit 2083f70

Browse files
KristofferCclaude
andcommitted
Reduce eltype combinatorics in the #14005 ldiv testset (#738)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 5e8f00c commit 2083f70

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/sparsevector.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,10 @@ end
13421342
floattypes = (Float32, Float64, BigFloat)
13431343
complextypes = (ComplexF32, ComplexF64)
13441344
eltypes = (inttypes..., floattypes..., complextypes...)
1345+
# The full eltype cross product compiles thousands of specializations
1346+
# (several CI minutes); do it only for the core types and pair the
1347+
# remaining eltypes with Float64.
1348+
coretypes = (Int64, Float64, ComplexF64)
13451349

13461350
for eltypemat in eltypes
13471351
(densemat, sparsemat) = eltypemat in inttypes ? (denseintmat, sparseintmat) :
@@ -1355,6 +1359,8 @@ end
13551359
LinearAlgebra.UnitLowerTriangular(sparsemat), LinearAlgebra.UnitUpperTriangular(sparsemat) )
13561360

13571361
for eltypevec in eltypes
1362+
(eltypemat in coretypes && eltypevec in coretypes) ||
1363+
eltypemat == Float64 || eltypevec == Float64 || continue
13581364
spvecs = eltypevec in inttypes ? sparseintvecs :
13591365
eltypevec in floattypes ? sparsefloatvecs :
13601366
eltypevec in complextypes && sparsecomplexvecs

0 commit comments

Comments
 (0)