scipy.linalg.lapack.dgelss_lwork#

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

Query the optimal lwork for dgelss.

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:
workfloat

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

infoint

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