scipy.linalg.lapack.cgelsd_lwork#

scipy.linalg.lapack.cgelsd_lwork(m, n, nrhs, cond=-1.0, lwork=-1) = <flapack function cgelsd_lwork>#

Query the optimal lwork for cgelsd.

Parameters:
mint

Number of rows of the matrix.

nint

Number of columns of the matrix.

nrhsint

Number of right-hand sides.

condfloat, optional

Singular values below cond times the largest are treated as zero. Default is -1.0, which uses machine precision.

lworkint, optional

Passed through to LAPACK; -1 requests the query. Default is -1.

Returns:
workcomplex

Optimal size of the work array, as a scalar of the routine’s dtype.

rworkfloat

Optimal size of the real workspace, to pass as size_rwork. The real flavors have no such output, so they return one value fewer.

iworkint

Optimal size of the integer workspace, to pass as size_iwork.

infoint

0 on success; if negative, the -info-th argument had an illegal value.