Skip to content

Commit aef3a9a

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

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
@@ -1350,6 +1350,10 @@ end
13501350
floattypes = (Float32, Float64, BigFloat)
13511351
complextypes = (ComplexF32, ComplexF64)
13521352
eltypes = (inttypes..., floattypes..., complextypes...)
1353+
# The full eltype cross product compiles thousands of specializations
1354+
# (several CI minutes); do it only for the core types and pair the
1355+
# remaining eltypes with Float64.
1356+
coretypes = (Int64, Float64, ComplexF64)
13531357

13541358
for eltypemat in eltypes
13551359
(densemat, sparsemat) = eltypemat in inttypes ? (denseintmat, sparseintmat) :
@@ -1363,6 +1367,8 @@ end
13631367
LinearAlgebra.UnitLowerTriangular(sparsemat), LinearAlgebra.UnitUpperTriangular(sparsemat) )
13641368

13651369
for eltypevec in eltypes
1370+
(eltypemat in coretypes && eltypevec in coretypes) ||
1371+
eltypemat == Float64 || eltypevec == Float64 || continue
13661372
spvecs = eltypevec in inttypes ? sparseintvecs :
13671373
eltypevec in floattypes ? sparsefloatvecs :
13681374
eltypevec in complextypes && sparsecomplexvecs

0 commit comments

Comments
 (0)