JuliaLang/julia — pull request #1321 by andreasnoackjensen (2012-09-30 21:08:36+00:00)
Title: Fix of leading dimensions in gesvd and gesdd.

The calls

A=randn(3,5)
Lapack.gesdd!('S',A)

or

Lapack.gesvd!('S','S',A)

resulted in segfaults because of wrong leading dimensions in VT. I have added the max(1,stride(VT,2)) to avoid illegal calls to Lapack. Also, for svd double 'O' was not allowed and has been exchanged with 'S'.