@@ -5558,15 +5558,15 @@ for (gees, gges, elty) in
55585558 # $ WR( * )
55595559 function gees! (jobvs:: Char , A:: StridedMatrix{$elty} )
55605560 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 )
55685568 lwork = BlasInt (- 1 )
5569- info = Ref {BlasInt} ()
5569+ info = Ref {BlasInt} ()
55705570 for i = 1 : 2 # first call returns lwork as work[1]
55715571 ccall ((@blasfunc ($ gees), liblapack), Void,
55725572 (Ptr{UInt8}, Ptr{UInt8}, Ptr{Void}, Ptr{BlasInt},
@@ -5651,16 +5651,16 @@ for (gees, gges, elty, relty) in
56515651 # COMPLEX*16 A( LDA, * ), VS( LDVS, * ), W( * ), WORK( * )
56525652 function gees! (jobvs:: Char , A:: StridedMatrix{$elty} )
56535653 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 )
56615661 lwork = BlasInt (- 1 )
56625662 rwork = Vector {$relty} (n)
5663- info = Ref {BlasInt} ()
5663+ info = Ref {BlasInt} ()
56645664 for i = 1 : 2 # first call returns lwork as work[1]
56655665 ccall ((@blasfunc ($ gees), liblapack), Void,
56665666 (Ptr{UInt8}, Ptr{UInt8}, Ptr{Void}, Ptr{BlasInt},
0 commit comments