Skip to content

Commit c7a291b

Browse files
committed
fixup
1 parent 8382e3b commit c7a291b

File tree

1 file changed

+4
-37
lines changed

1 file changed

+4
-37
lines changed

test/testsuite/linalg.jl

Lines changed: 4 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -315,43 +315,10 @@
315315
end
316316

317317
@testset "mul! + UniformScaling" begin
318-
@testset "elty" for elty in (Float32, ComplexF32)
319-
n = 128
320-
s = rand(elty)
321-
I_s = UniformScaling(s)
322-
323-
# Test vector operations
324-
a = AT(rand(elty, n))
325-
b = AT(rand(elty, n))
326-
b_copy = copy(b)
327-
328-
# Test mul!(a, I*s, b) - should compute a = s * b
329-
mul!(a, I_s, b)
330-
@test collect(a) s .* collect(b_copy)
331-
332-
# Test mul!(a, b, s) - should compute a = b * s
333-
a = AT(rand(elty, n))
334-
mul!(a, b, s)
335-
@test collect(a) collect(b_copy) .* s
336-
337-
# Test matrix operations
338-
A = AT(rand(elty, n, n))
339-
B = AT(rand(elty, n, n))
340-
B_copy = copy(B)
341-
342-
# Test mul!(A, I*s, B)
343-
mul!(A, I_s, B)
344-
@test collect(A) s .* collect(B_copy)
345-
346-
# Test mul!(A, B, s)
347-
A = AT(rand(elty, n, n))
348-
mul!(A, B, s)
349-
@test collect(A) collect(B_copy) .* s
350-
end
351-
end
352-
353-
@testset "mul! + UniformScaling" begin
354-
for elty in (Float32, ComplexF32)
318+
@testset "$elty" for elty in (Float32, ComplexF32)
319+
if !(elty in eltypes)
320+
continue
321+
end
355322
n = 128
356323
s = rand(elty)
357324
I_s = UniformScaling(s)

0 commit comments

Comments
 (0)