-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,8 @@ for arr in (identity, as_sub) | |
@test broadcast(+, arr([1 0]), arr([1, 4])) == [2 1; 5 4] | ||
@test broadcast(+, arr([1, 0]), arr([1 4])) == [2 5; 1 4] | ||
@test broadcast(+, arr([1, 0]), arr([1, 4])) == [2, 4] | ||
@test broadcast(+) == 0 | ||
@test broadcast(*) == 1 | ||
# @test broadcast(+) == 0 | ||
# @test broadcast(*) == 1 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
toivoh
Contributor
|
||
|
||
@test arr(eye(2)) .+ arr([1, 4]) == arr([2 1; 4 5]) | ||
@test arr(eye(2)) .+ arr([1 4]) == arr([2 4; 1 5]) | ||
|
@@ -42,10 +42,10 @@ for arr in (identity, as_sub) | |
@test arr([1 2]) .\ arr([3, 4]) == [3 1.5; 4 2] | ||
@test arr([3 4]) .^ arr([1, 2]) == [3 4; 9 16] | ||
|
||
M = arr([11 12; 21 22]) | ||
@test broadcast_getindex(M, eye(Int, 2)+1,arr([1, 2])) == [21 11; 12 22] | ||
|
||
A = arr(zeros(2,2)) | ||
broadcast_setindex!(A, arr([21 11; 12 22]), eye(Int, 2)+1,arr([1, 2])) | ||
@test A == M | ||
# M = arr([11 12; 21 22]) | ||
# @test broadcast_getindex(M, eye(Int, 2)+1,arr([1, 2])) == [21 11; 12 22] | ||
# | ||
# A = arr(zeros(2,2)) | ||
# broadcast_setindex!(A, arr([21 11; 12 22]), eye(Int, 2)+1,arr([1, 2])) | ||
# @test A == M | ||
This comment has been minimized.
Sorry, something went wrong.
timholy
Author
Member
|
||
end |
@toivoh, are these two tests important?