@@ -781,7 +781,7 @@ timesofar("unary arithmetic")
781
781
let b1 = bitrand (n1, n2)
782
782
b2 = bitrand (n1, n2)
783
783
@check_bit_operation broadcast (& , b1, b2) BitMatrix
784
- @check_bit_operation ( | )( b1, b2) BitMatrix
784
+ @check_bit_operation broadcast ( | , b1, b2) BitMatrix
785
785
@check_bit_operation broadcast (xor, b1, b2) BitMatrix
786
786
@check_bit_operation (+ )(b1, b2) Matrix{Int}
787
787
@check_bit_operation (- )(b1, b2) Matrix{Int}
812
812
813
813
let b0 = falses (0 )
814
814
@check_bit_operation broadcast (& , b0, b0) BitVector
815
- @check_bit_operation ( | )( b0, b0) BitVector
815
+ @check_bit_operation broadcast ( | , b0, b0) BitVector
816
816
@check_bit_operation broadcast (xor, b0, b0) BitVector
817
817
@check_bit_operation broadcast (* , b0, b0) BitVector
818
818
@check_bit_operation (* )(b0, b0' ) Matrix{Int}
823
823
let b1 = bitrand (n1, n2)
824
824
i2 = rand (1 : 10 , n1, n2)
825
825
@check_bit_operation broadcast (& , b1, i2) Matrix{Int}
826
- @check_bit_operation ( | )( b1, i2) Matrix{Int}
826
+ @check_bit_operation broadcast ( | , b1, i2) Matrix{Int}
827
827
@check_bit_operation broadcast (xor, b1, i2) Matrix{Int}
828
828
@check_bit_operation (+ )(b1, i2) Matrix{Int}
829
829
@check_bit_operation (- )(b1, i2) Matrix{Int}
@@ -856,14 +856,14 @@ let b2 = bitrand(n1, n2)
856
856
cf1 = complex (f1)
857
857
858
858
@check_bit_operation broadcast (& , i1, b2) Matrix{Int}
859
- @check_bit_operation ( | )( i1, b2) Matrix{Int}
859
+ @check_bit_operation broadcast ( | , i1, b2) Matrix{Int}
860
860
@check_bit_operation broadcast (xor, i1, b2) Matrix{Int}
861
861
@check_bit_operation broadcast (+ , i1, b2) Matrix{Int}
862
862
@check_bit_operation broadcast (- , i1, b2) Matrix{Int}
863
863
@check_bit_operation broadcast (* , i1, b2) Matrix{Int}
864
864
865
865
@check_bit_operation broadcast (& , u1, b2) Matrix{UInt8}
866
- @check_bit_operation ( | )( u1, b2) Matrix{UInt8}
866
+ @check_bit_operation broadcast ( | , u1, b2) Matrix{UInt8}
867
867
@check_bit_operation broadcast (xor, u1, b2) Matrix{UInt8}
868
868
@check_bit_operation broadcast (+ , u1, b2) Matrix{UInt8}
869
869
@check_bit_operation broadcast (- , u1, b2) Matrix{UInt8}
@@ -935,10 +935,10 @@ let b1 = bitrand(n1, n2)
935
935
@check_bit_operation broadcast (& , b1, false ) BitMatrix
936
936
@check_bit_operation broadcast (& , true , b1) BitMatrix
937
937
@check_bit_operation broadcast (& , false , b1) BitMatrix
938
- @check_bit_operation ( | )( b1, true ) BitMatrix
939
- @check_bit_operation ( | )( b1, false ) BitMatrix
940
- @check_bit_operation ( | )( true , b1) BitMatrix
941
- @check_bit_operation ( | )( false , b1) BitMatrix
938
+ @check_bit_operation broadcast ( | , b1, true ) BitMatrix
939
+ @check_bit_operation broadcast ( | , b1, false ) BitMatrix
940
+ @check_bit_operation broadcast ( | , true , b1) BitMatrix
941
+ @check_bit_operation broadcast ( | , false , b1) BitMatrix
942
942
@check_bit_operation broadcast (xor, b1, true ) BitMatrix
943
943
@check_bit_operation broadcast (xor, b1, false ) BitMatrix
944
944
@check_bit_operation broadcast (xor, true , b1) BitMatrix
@@ -957,13 +957,13 @@ let b1 = bitrand(n1, n2)
957
957
@check_bit_operation broadcast (mod,b1, true ) BitMatrix
958
958
959
959
@check_bit_operation broadcast (& , b1, b2) BitMatrix
960
- @check_bit_operation ( | )( b1, b2) BitMatrix
960
+ @check_bit_operation broadcast ( | , b1, b2) BitMatrix
961
961
@check_bit_operation broadcast (xor, b1, b2) BitMatrix
962
962
@check_bit_operation broadcast (& , b2, b1) BitMatrix
963
- @check_bit_operation ( | )( b2, b1) BitMatrix
963
+ @check_bit_operation broadcast ( | , b2, b1) BitMatrix
964
964
@check_bit_operation broadcast (xor, b2, b1) BitMatrix
965
965
@check_bit_operation broadcast (& , b1, i2) Matrix{Int}
966
- @check_bit_operation ( | )( b1, i2) Matrix{Int}
966
+ @check_bit_operation broadcast ( | , b1, i2) Matrix{Int}
967
967
@check_bit_operation broadcast (xor, b1, i2) Matrix{Int}
968
968
@check_bit_operation broadcast (+ , b1, i2) Matrix{Int}
969
969
@check_bit_operation broadcast (- , b1, i2) Matrix{Int}
@@ -973,7 +973,7 @@ let b1 = bitrand(n1, n2)
973
973
@check_bit_operation broadcast (mod, b1, i2) Matrix{Int}
974
974
975
975
@check_bit_operation broadcast (& , b1, u2) Matrix{UInt8}
976
- @check_bit_operation ( | )( b1, u2) Matrix{UInt8}
976
+ @check_bit_operation broadcast ( | , b1, u2) Matrix{UInt8}
977
977
@check_bit_operation broadcast (xor, b1, u2) Matrix{UInt8}
978
978
@check_bit_operation broadcast (+ , b1, u2) Matrix{UInt8}
979
979
@check_bit_operation broadcast (- , b1, u2) Matrix{UInt8}
@@ -1116,7 +1116,7 @@ let b1 = trues(v1)
1116
1116
1117
1117
for i = 3 : (v1- 1 ), j = 2 : i
1118
1118
submask = b1 << (v1- j+ 1 )
1119
- @test findnext ((b1 >> i) | submask, j) == i+ 1
1119
+ @test findnext ((b1 >> i) . | submask, j) == i+ 1
1120
1120
@test findnextnot ((~ (b1 >> i)) .⊻ submask, j) == i+ 1
1121
1121
end
1122
1122
end
@@ -1273,7 +1273,7 @@ for l = [0, 1, 63, 64, 65, 127, 128, 129, 255, 256, 257, 6399, 6400, 6401]
1273
1273
@test map (identity, b1) == map (x-> x, b1) == b1
1274
1274
1275
1275
@test map (& , b1, b2) == map ((x,y)-> x& y, b1, b2) == broadcast (& , b1, b2)
1276
- @test map (| , b1, b2) == map ((x,y)-> x| y, b1, b2) == b1 | b2
1276
+ @test map (| , b1, b2) == map ((x,y)-> x| y, b1, b2) == broadcast ( | , b1, b2)
1277
1277
@test map (⊻ , b1, b2) == map ((x,y)-> x⊻ y, b1, b2) == broadcast (⊻ , b1, b2) == broadcast (xor, b1, b2)
1278
1278
1279
1279
@test map (^ , b1, b2) == map ((x,y)-> x^ y, b1, b2) == b1 .^ b2
@@ -1298,7 +1298,7 @@ for l = [0, 1, 63, 64, 65, 127, 128, 129, 255, 256, 257, 6399, 6400, 6401]
1298
1298
@test map! (one, b, b1) == map! (x-> true , b, b1) == trues (l) == b
1299
1299
1300
1300
@test map! (& , b, b1, b2) == map! ((x,y)-> x& y, b, b1, b2) == broadcast (& , b1, b2) == b
1301
- @test map! (| , b, b1, b2) == map! ((x,y)-> x| y, b, b1, b2) == b1 | b2 == b
1301
+ @test map! (| , b, b1, b2) == map! ((x,y)-> x| y, b, b1, b2) == broadcast ( | , b1, b2) == b
1302
1302
@test map! (⊻ , b, b1, b2) == map! ((x,y)-> x⊻ y, b, b1, b2) == broadcast (⊻ , b1, b2) == broadcast (xor, b1, b2) == b
1303
1303
1304
1304
@test map! (^ , b, b1, b2) == map! ((x,y)-> x^ y, b, b1, b2) == b1 .^ b2 == b
@@ -1407,7 +1407,7 @@ for sz = [(n1,n1), (n1,n2), (n2,n1)], (f,isf) = [(tril,istril), (triu,istriu)]
1407
1407
end
1408
1408
1409
1409
let b1 = bitrand (n1,n1)
1410
- b1 |= b1.'
1410
+ b1 . |= b1.'
1411
1411
@check_bit_operation issymmetric (b1) Bool
1412
1412
@check_bit_operation ishermitian (b1) Bool
1413
1413
end
0 commit comments