File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 102
102
103
103
if s == sb
104
104
if T == Tb
105
- newtype = b
105
+ newtype = similar_type (b)
106
106
else
107
107
newtype = similar_type (b, T)
108
108
end
141
141
142
142
if s == sb
143
143
if T == Tb
144
- newtype = b
144
+ newtype = similar_type (b)
145
145
else
146
146
newtype = similar_type (b, T)
147
147
end
237
237
238
238
if s == sB
239
239
if T == TB
240
- newtype = B
240
+ newtype = similar_type (B)
241
241
else
242
242
newtype = similar_type (B, T)
243
243
end
334
334
# TODO think about which to be similar to
335
335
if s == sB
336
336
if T == TB
337
- newtype = B
337
+ newtype = similar_type (B)
338
338
else
339
339
newtype = similar_type (B, T)
340
340
end
375
375
# TODO think about which to be similar to
376
376
if s == sB
377
377
if T == TB
378
- newtype = B
378
+ newtype = similar_type (B)
379
379
else
380
380
newtype = similar_type (B, T)
381
381
end
420
420
# TODO think about which to be similar to
421
421
if s == sB
422
422
if T == TB
423
- newtype = B
423
+ newtype = similar_type (B)
424
424
else
425
425
newtype = similar_type (B, T)
426
426
end
463
463
464
464
if s == sb
465
465
if T == Tb
466
- newtype = b
466
+ newtype = similar_type (b)
467
467
else
468
468
newtype = similar_type (b, T)
469
469
end
Original file line number Diff line number Diff line change 18
18
19
19
m3 = @SArray [1 2 ; 3 4 ]
20
20
v5 = @SArray [1 , 2 ]
21
- @test m3* v5 === @SArray [5 , 11 ]
21
+ @test m3* v5 === @SVector [5 , 11 ]
22
22
23
23
m4 = @MArray [1 2 ; 3 4 ]
24
24
v6 = @MArray [1 , 2 ]
25
- @test (m4* v6):: MArray == @MArray [5 , 11 ]
25
+ @test (m4* v6):: MVector == @MVector [5 , 11 ]
26
26
27
27
m5 = @SMatrix [1.0 2.0 ; 3.0 4.0 ]
28
28
v7 = [1.0 , 2.0 ]
62
62
63
63
m = @SArray [1 2 ; 3 4 ]
64
64
n = @SArray [2 3 ; 4 5 ]
65
- @test m* n === @SArray [10 13 ; 22 29 ]
65
+ @test m* n === @SMatrix [10 13 ; 22 29 ]
66
66
67
67
m = @MArray [1 2 ; 3 4 ]
68
68
n = @MArray [2 3 ; 4 5 ]
69
- @test (m* n):: MArray == @MArray [10 13 ; 22 29 ]
69
+ @test (m* n):: MMatrix == @MMatrix [10 13 ; 22 29 ]
70
70
71
71
# Alternative methods used between 8 < n <= 14 and n > 14
72
72
m_array = rand (1 : 10 , 10 , 10 )
You can’t perform that action at this time.
0 commit comments