Macaulay2 Engine
Loading...
Searching...
No Matches

◆ leastSquares() [1/5]

bool MatrixOps::leastSquares ( const DMatCC & A,
const DMatCC & B,
DMatCC & X,
bool assume_full_rank )
inline

Definition at line 1342 of file mat-linalg.hpp.

1346{
1347#ifndef NO_LAPACK
1348 if (assume_full_rank)
1349 return Lapack::least_squares(&A, &B, &X);
1350 else
1351 return Lapack::least_squares_deficient(&A, &B, &X);
1352#else
1353 return EigenM2::least_squares(&A, &B, &X);
1354#endif
1355}
static bool least_squares_deficient(const DMatRRR *A, const DMatRRR *b, DMatRRR *x)
static bool least_squares(const DMatRRR *A, const DMatRRR *b, DMatRRR *x)
bool least_squares(const LMatrixRRR *A, const LMatrixRRR *B, LMatrixRRR *X)
Definition eigen.cpp:558

References EigenM2::least_squares(), Lapack::least_squares(), and Lapack::least_squares_deficient().