ProteoWizard
Public Member Functions | List of all members
pwiz::math::LinearLeastSquares< LinearLeastSquaresType_QR > Class Template Reference

#include <LinearLeastSquares.hpp>

Public Member Functions

template<typename T >
boost::numeric::ublas::vector< T > solve (const boost::numeric::ublas::matrix< T > &A, const boost::numeric::ublas::vector< T > &x)
 

Detailed Description

template<>
class pwiz::math::LinearLeastSquares< LinearLeastSquaresType_QR >

Definition at line 66 of file LinearLeastSquares.hpp.

Member Function Documentation

§ solve()

template<typename T >
boost::numeric::ublas::vector<T> pwiz::math::LinearLeastSquares< LinearLeastSquaresType_QR >::solve ( const boost::numeric::ublas::matrix< T > &  A,
const boost::numeric::ublas::vector< T > &  x 
)
inline

Definition at line 71 of file LinearLeastSquares.hpp.

References pwiz::math::LinearSolver< LinearSolverType_QR >::solve(), and y.

Referenced by testDoubleQR(), testExactFitQR(), testLeastSquaresQR(), and testSimpleRectangleQR().

74  {
75  LinearSolver<LinearSolverType_QR> solver;
76 
77  boost::numeric::ublas::vector<T> y = solver.solve(A, x);
78 
79  return y;
80  }
#define A
KernelTraitsBase< Kernel >::space_type::abscissa_type x
KernelTraitsBase< Kernel >::space_type::ordinate_type y

The documentation for this class was generated from the following file: