You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#TODO Potentially a loop version for rather large arrays? Or try and figure out inference problems?
13
10
@@ -96,7 +93,7 @@ end
96
93
sb =size(b)
97
94
98
95
s = (sA[1],)
99
-
T =promote_op(matprod, TA, Tb)
96
+
T =promote_matprod(TA, Tb)
100
97
#println(T)
101
98
102
99
if sb[1] != sA[2]
@@ -135,7 +132,7 @@ end
135
132
sb =size(b)
136
133
137
134
s = (sA[1],)
138
-
T =promote_op(matprod, TA, Tb)
135
+
T =promote_matprod(TA, Tb)
139
136
#println(T)
140
137
141
138
if sb[1] != sA[2]
@@ -174,7 +171,7 @@ end
174
171
#sb = size(b)
175
172
176
173
s = (sA[1],)
177
-
T =promote_op(matprod, TA, Tb)
174
+
T =promote_matprod(TA, Tb)
178
175
179
176
if T == TA
180
177
newtype =similar_type(A, s)
@@ -202,7 +199,7 @@ end
202
199
sA =size(A)
203
200
204
201
s = (sA[1],)
205
-
T =promote_op(matprod, TA, Tb)
202
+
T =promote_matprod(TA, Tb)
206
203
207
204
if T == TA
208
205
newtype =similar_type(A, s)
@@ -232,7 +229,7 @@ end
232
229
sB =size(B)
233
230
234
231
s = (sa[1],sB[2])
235
-
T =promote_op(matprod, Ta, TB)
232
+
T =promote_matprod(Ta, TB)
236
233
237
234
if sB[1] !=1
238
235
error("Dimension mismatch")
@@ -266,7 +263,7 @@ end
266
263
TA =eltype(A)
267
264
TB =eltype(B)
268
265
269
-
T =promote_op(matprod, TA, TB)
266
+
T =promote_matprod(TA, TB)
270
267
271
268
can_mutate =!isbits(A) ||!isbits(B) # !isbits implies can get a persistent pointer (to pass to BLAS). Probably will change to !isimmutable in a future version of Julia.
272
269
can_blas = T == TA && T == TB && T <:Union{Float64, Float32, Complex{Float64}, Complex{Float32}}
@@ -328,7 +325,7 @@ end
328
325
TB =eltype(B)
329
326
330
327
s = (sA[1], sB[2])
331
-
T =promote_op(matprod, TA, TB)
328
+
T =promote_matprod(TA, TB)
332
329
333
330
if sB[1] != sA[2]
334
331
error("Dimension mismatch")
@@ -369,7 +366,7 @@ end
369
366
TB =eltype(B)
370
367
371
368
s = (sA[1], sB[2])
372
-
T =promote_op(matprod, TA, TB)
369
+
T =promote_matprod(TA, TB)
373
370
374
371
if sB[1] != sA[2]
375
372
error("Dimension mismatch")
@@ -414,7 +411,7 @@ end
414
411
TB =eltype(B)
415
412
416
413
s = (sA[1], sB[2])
417
-
T =promote_op(matprod, TA, TB)
414
+
T =promote_matprod(TA, TB)
418
415
419
416
if sB[1] != sA[2]
420
417
error("Dimension mismatch")
@@ -458,7 +455,7 @@ end
458
455
sb =size(b)
459
456
460
457
s = (sA[1],)
461
-
T =promote_op(matprod, TA, Tb)
458
+
T =promote_matprod(TA, Tb)
462
459
463
460
if sb[1] != sA[2]
464
461
error("Dimension mismatch")
@@ -621,7 +618,7 @@ end
621
618
622
619
TA =eltype(A)
623
620
TB =eltype(B)
624
-
T =promote_op(matprod, TA, TB)
621
+
T =promote_matprod(TA, TB)
625
622
626
623
can_blas = T == TA && T == TB && T <:Union{Float64, Float32, Complex{Float64}, Complex{Float32}}
0 commit comments