File tree Expand file tree Collapse file tree 1 file changed +4
-37
lines changed Expand file tree Collapse file tree 1 file changed +4
-37
lines changed Original file line number Diff line number Diff line change 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)
You can’t perform that action at this time.
0 commit comments