The function schur fails for zero dimension matrices:
julia> schur(zeros(0,0),ones(0,0))
** On entry to DGGES PMGTL parameter number 15 had an illegal value
ERROR: ArgumentError: invalid argument #15 to LAPACK call
Stacktrace:
[1] gges!(::Char, ::Char, ::Array{Float64,2}, ::Array{Float64,2}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\LinearAlgebra\src\lapack.jl:36
[2] schur! at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\LinearAlgebra\src\schur.jl:252 [inlined]
[3] schur(::Array{Float64,2}, ::Array{Float64,2}) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\LinearAlgebra\src\schur.jl:268
[4] top-level scope at REPL[4]:1
The fix is easy: in the function LAPACK.gges! the parameters ldvsl and ldvsr must be set to max(1,n).
The function
schur
fails for zero dimension matrices:The fix is easy: in the function
LAPACK.gges!
the parametersldvsl
andldvsr
must be set tomax(1,n)
.