ML_DGELSD – Computes the minimum-norm solution to a real linear least squares problem

Block SymbolLicensing group: MATRIX
PIC

Function Description
The output references yA, yB, yS, yWORK and yIWORK are always set to the corresponding input references uA, uB, uS, uWORK and uIWORK. If HLD = on then nothing is computed otherwise the LAPACK function DGELSD is called internally:

DGELSD(M, N, NRHS, uA, LDA, uB, LDB, uS, rcond, irank,uWORK,
LWORK, uIWORK, info);

where parameters of DGELSD are set in the following way:

The error flag E is set to on if:

See LAPACK documentation [7] for more details.

Inputs

uA

Input reference to matrix A

reference

uB

Input reference to matrix B

reference

uS

Input reference to vector of singular values

reference

uWORK

Input reference to working vector WORK

reference

uIWORK

Input reference to integer working vector WORK

reference

rcond

Used to determine the effective rank of A

double

HLD

Hold

bool

Outputs

yA

Output reference to matrix A

reference

yB

Output reference to matrix B

reference

yS

Output reference to vector of singular values

reference

yWORK

Output reference to working vector WORK

reference

yIWORK

Output reference to integer working vector WORK

reference

irank

Effective rank of A

long

E

Error indicator

bool

info

LAPACK function result info. If info = -i, the i=th argument had an illegal value

long