Skip to content

Commit 5a503e4

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

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
@@ -1337,6 +1337,10 @@ end
13371337
floattypes = (Float32, Float64, BigFloat)
13381338
complextypes = (ComplexF32, ComplexF64)
13391339
eltypes = (inttypes..., floattypes..., complextypes...)
1340+
# The full eltype cross product compiles thousands of specializations
1341+
# (several CI minutes); do it only for the core types and pair the
1342+
# remaining eltypes with Float64.
1343+
coretypes = (Int64, Float64, ComplexF64)
13401344

13411345
for eltypemat in eltypes
13421346
(densemat, sparsemat) = eltypemat in inttypes ? (denseintmat, sparseintmat) :
@@ -1350,6 +1354,8 @@ end
13501354
LinearAlgebra.UnitLowerTriangular(sparsemat), LinearAlgebra.UnitUpperTriangular(sparsemat) )
13511355

13521356
for eltypevec in eltypes
1357+
(eltypemat in coretypes && eltypevec in coretypes) ||
1358+
eltypemat == Float64 || eltypevec == Float64 || continue
13531359
spvecs = eltypevec in inttypes ? sparseintvecs :
13541360
eltypevec in floattypes ? sparsefloatvecs :
13551361
eltypevec in complextypes && sparsecomplexvecs

0 commit comments

Comments
 (0)