File tree 1 file changed +10
-1
lines changed 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -133,8 +133,12 @@ if isdefined(LinearAlgebra, :copytrito!)
133
133
LinearAlgebra. BLAS. chkuplo (uplo)
134
134
m,n = size (A)
135
135
m1,n1 = size (B)
136
- (m1 < m || n1 < n) && throw (DimensionMismatch (" B of size ($m1 ,$n1 ) should have at least the same number of rows and columns than A of size ($m ,$n )" ))
137
136
if uplo == ' U'
137
+ if n < m
138
+ (m1 < n || n1 < n) && throw (DimensionMismatch (" B of size ($m1 ,$n1 ) should have at least size ($n ,$n )" ))
139
+ else
140
+ (m1 < m || n1 < n) && throw (DimensionMismatch (" B of size ($m1 ,$n1 ) should have at least size ($m ,$n )" ))
141
+ end
138
142
gpu_call (A, B) do ctx, _A, _B
139
143
I = @cartesianidx _A
140
144
i, j = Tuple (I)
@@ -144,6 +148,11 @@ if isdefined(LinearAlgebra, :copytrito!)
144
148
return
145
149
end
146
150
else # uplo == 'L'
151
+ if m < n
152
+ (m1 < m || n1 < m) && throw (DimensionMismatch (" B of size ($m1 ,$n1 ) should have at least size ($m ,$m )" ))
153
+ else
154
+ (m1 < m || n1 < n) && throw (DimensionMismatch (" B of size ($m1 ,$n1 ) should have at least size ($m ,$n )" ))
155
+ end
147
156
gpu_call (A, B) do ctx, _A, _B
148
157
I = @cartesianidx _A
149
158
i, j = Tuple (I)
You can’t perform that action at this time.
0 commit comments