scipy/scipy — pull request #3871 by pv (2014-08-13 19:26:02+00:00)
Title: MAINT: linalg: get rid of calc_lwork.f

Call LAPACK routines with lwork=-1 to get recommended work array sizes,
instead of using calc_lwork.f (which corresponds to some old LAPACK
version and may not be optimal for newer ones).

Also remove the LWORK check from zgesdd wrapper --- LAPACK makes the
necessary checks itself.