Skip to content

Commit 0b7af3c

Browse files
traktofonandreasnoack
authored andcommitted
scale! -> [lr]mul!
1 parent c7a2c5a commit 0b7af3c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

test/darray.jl

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
<<<<<<< HEAD
12
using Test, LinearAlgebra, SpecialFunctions
3+
=======
4+
using SpecialFunctions
5+
using LinearAlgebra
6+
>>>>>>> scale! -> [lr]mul!
27

38
@testset "test distribute and other constructors" begin
49
A = rand(1:100, (100,100))
@@ -196,7 +201,7 @@ end
196201

197202
check_leaks()
198203

199-
@testset "test scale" begin
204+
@testset "test rmul" begin
200205
A = randn(100,100)
201206
DA = distribute(A)
202207
@test rmul!(DA, 2) == rmul!(A, 2)
@@ -205,17 +210,29 @@ end
205210

206211
check_leaks()
207212

213+
<<<<<<< HEAD
208214
@testset "test rmul!(Diagonal, A)" begin
215+
=======
216+
@testset "test [lr]mul!(b, A)" begin
217+
>>>>>>> scale! -> [lr]mul!
209218
A = randn(100, 100)
210219
b = randn(100)
211220
D = Diagonal(b)
212221
DA = distribute(A)
222+
<<<<<<< HEAD
213223
@test lmul!(D, A) == lmul!(D, DA)
224+
=======
225+
@test lmul!(Diagonal(b), A) == lmul!(Diagonal(b), DA)
226+
>>>>>>> scale! -> [lr]mul!
214227
close(DA)
215228
A = randn(100, 100)
216229
b = randn(100)
217230
DA = distribute(A)
231+
<<<<<<< HEAD
218232
@test rmul!(A, D) == rmul!(DA, D)
233+
=======
234+
@test rmul!(A, Diagonal(b)) == rmul!(A, Diagonal(b))
235+
>>>>>>> scale! -> [lr]mul!
219236
close(DA)
220237
end
221238

0 commit comments

Comments
 (0)