97 static Int solve(
double* A,
int A_rows,
int A_cols,
98 std::vector<double>& b, std::vector<double>& x);
A 2D matrix class with efficient buffer access for NumPy interoperability.
Definition Matrix.h:35
Wrapper around the Lawson-Hanson non-negative least squares (NNLS) Fortran routine.
Definition NonNegativeLeastSquaresSolver.h:34
static Int solve(const Matrix< double > &A, const Matrix< double > &b, Matrix< double > &x)
Solve argmin_{x >= 0} ||Ax - b||_2 without modifying the inputs.
static Int solve(Matrix< double > &A, std::vector< double > &b, std::vector< double > &x)
In-place Matrix / std::vector overload of solve.
RETURN_STATUS
Return status of solve.
Definition NonNegativeLeastSquaresSolver.h:39
@ SOLVED
NNLS converged within the iteration limit; x holds the solution.
Definition NonNegativeLeastSquaresSolver.h:40
static Int solve(double *A, int A_rows, int A_cols, std::vector< double > &b, std::vector< double > &x)
In-place pointer overload of solve.
int Int
Signed integer type.
Definition Types.h:72
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19