@@ -5558,15 +5558,15 @@ for (gees, gges, elty) in
5558
5558
# $ WR( * )
5559
5559
function gees! (jobvs:: Char , A:: StridedMatrix{$elty} )
5560
5560
chkstride1 (A)
5561
- n = checksquare (A)
5562
- sdim = Vector {BlasInt} (1 )
5563
- wr = similar (A, $ elty, n)
5564
- wi = similar (A, $ elty, n)
5565
- ldvs = jobvs == ' V' ? n : 1
5566
- vs = similar (A, $ elty, ldvs, n )
5567
- work = Vector {$elty} (1 )
5561
+ n = checksquare (A)
5562
+ sdim = Vector {BlasInt} (1 )
5563
+ wr = similar (A, $ elty, n)
5564
+ wi = similar (A, $ elty, n)
5565
+ vs = similar (A, $ elty, jobvs == ' V' ? n : 0 , n)
5566
+ ldvs = max ( size (vs, 1 ), 1 )
5567
+ work = Vector {$elty} (1 )
5568
5568
lwork = BlasInt (- 1 )
5569
- info = Ref {BlasInt} ()
5569
+ info = Ref {BlasInt} ()
5570
5570
for i = 1 : 2 # first call returns lwork as work[1]
5571
5571
ccall ((@blasfunc ($ gees), liblapack), Void,
5572
5572
(Ptr{UInt8}, Ptr{UInt8}, Ptr{Void}, Ptr{BlasInt},
@@ -5651,16 +5651,16 @@ for (gees, gges, elty, relty) in
5651
5651
# COMPLEX*16 A( LDA, * ), VS( LDVS, * ), W( * ), WORK( * )
5652
5652
function gees! (jobvs:: Char , A:: StridedMatrix{$elty} )
5653
5653
chkstride1 (A)
5654
- n = checksquare (A)
5655
- sort = ' N'
5656
- sdim = BlasInt (0 )
5657
- w = similar (A, $ elty, n)
5658
- ldvs = jobvs == ' V' ? n : 1
5659
- vs = similar (A, $ elty, ldvs, n )
5660
- work = Vector {$elty} (1 )
5654
+ n = checksquare (A)
5655
+ sort = ' N'
5656
+ sdim = BlasInt (0 )
5657
+ w = similar (A, $ elty, n)
5658
+ vs = similar (A, $ elty, jobvs == ' V' ? n : 1 , n)
5659
+ ldvs = max ( size (vs, 1 ), 1 )
5660
+ work = Vector {$elty} (1 )
5661
5661
lwork = BlasInt (- 1 )
5662
5662
rwork = Vector {$relty} (n)
5663
- info = Ref {BlasInt} ()
5663
+ info = Ref {BlasInt} ()
5664
5664
for i = 1 : 2 # first call returns lwork as work[1]
5665
5665
ccall ((@blasfunc ($ gees), liblapack), Void,
5666
5666
(Ptr{UInt8}, Ptr{UInt8}, Ptr{Void}, Ptr{BlasInt},
0 commit comments