OpenMS
NonNegativeLeastSquaresSolver.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Chris Bielow $
6 // $Authors: Chris Bielow $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
12 
13 namespace OpenMS
14 {
20  class OPENMS_DLLAPI NonNegativeLeastSquaresSolver
21  {
22 public:
23 
25  {
27  ITERATION_EXCEEDED
28  };
29 
40  static Int solve(const Matrix<double> & A, const Matrix<double> & b, Matrix<double> & x);
41  };
42 
43 } // namespace OpenMS
44 
Wrapper for a non-negative least squares (NNLS) solver.
Definition: NonNegativeLeastSquaresSolver.h:21
static Int solve(const Matrix< double > &A, const Matrix< double > &b, Matrix< double > &x)
This is a wrapper for the external nnls library for the non-negative least square problem Ax=b,...
RETURN_STATUS
Definition: NonNegativeLeastSquaresSolver.h:25
@ SOLVED
Definition: NonNegativeLeastSquaresSolver.h:26
int Int
Signed integer type.
Definition: Types.h:72
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19