241
241
# orglq and friends errors
242
242
for elty in (Float32, Float64, Complex64, Complex128)
243
243
A = rand (elty,10 ,10 )
244
- tau = zeros (elty,10 )
245
- A,tau = LAPACK. gelqf! (A,tau)
244
+ A,tau = LAPACK. gelqf! (A)
246
245
@test_throws DimensionMismatch LAPACK. orglq! (A,tau,11 )
247
246
@test_throws DimensionMismatch LAPACK. ormlq! (' R' ,' N' ,A,tau,rand (elty,11 ,11 ))
248
247
@test_throws DimensionMismatch LAPACK. ormlq! (' L' ,' N' ,A,tau,rand (elty,11 ,11 ))
@@ -254,8 +253,7 @@ for elty in (Float32, Float64, Complex64, Complex128)
254
253
@test LAPACK. ormlq! (' R' ,' N' ,A,tau,eye (elty,10 )) ≈ C
255
254
256
255
A = rand (elty,10 ,10 )
257
- tau = zeros (elty,10 )
258
- A,tau = LAPACK. geqrf! (A,tau)
256
+ A,tau = LAPACK. geqrf! (A)
259
257
@test_throws DimensionMismatch LAPACK. orgqr! (A,tau,11 )
260
258
B = copy (A)
261
259
@test LAPACK. orgqr! (B,tau) ≈ LAPACK. ormqr! (' R' ,' N' ,A,tau,eye (elty,10 ))
@@ -264,6 +262,12 @@ for elty in (Float32, Float64, Complex64, Complex128)
264
262
@test_throws DimensionMismatch LAPACK. ormqr! (' R' ,' N' ,A,zeros (elty,11 ),rand (elty,10 ,10 ))
265
263
@test_throws DimensionMismatch LAPACK. ormqr! (' L' ,' N' ,A,zeros (elty,11 ),rand (elty,10 ,10 ))
266
264
265
+ A = rand (elty,10 ,10 )
266
+ A,tau = LAPACK. geqlf! (A)
267
+
268
+ A = rand (elty,10 ,10 )
269
+ A,tau = LAPACK. gerqf! (A)
270
+
267
271
C = rand (elty,10 ,10 )
268
272
V = rand (elty,10 ,10 )
269
273
T = zeros (elty,10 ,11 )
@@ -418,6 +422,8 @@ for elty in (Float32, Float64, Complex64, Complex128)
418
422
@test_approx_eq A\ B C
419
423
@test_throws DimensionMismatch LAPACK. posv! (' U' ,D,ones (elty,12 ,12 ))
420
424
@test_throws DimensionMismatch LAPACK. potrs! (' U' ,D,ones (elty,12 ,12 ))
425
+
426
+ @test LAPACK. potrs! (' U' ,zeros (elty,0 ,0 ),ones (elty,0 )) == ones (elty,0 )
421
427
end
422
428
423
429
# gesvx
0 commit comments