 |
NumCpp
2.4.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Go to the documentation of this file.
58 template<
typename dtype>
63 SVD svdSolver(inA.template astype<double>());
64 const double threshold = inTolerance * svdSolver.
s().
front();
66 return svdSolver.
solve(inB.template astype<double>(), threshold);
NdArray< double > lstsq(const NdArray< dtype > &inA, const NdArray< dtype > &inB, double inTolerance=1e-12)
Definition: lstsq.hpp:59
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:37
const NdArray< double > & s() noexcept
Definition: SVDClass.hpp:101
Definition: SVDClass.hpp:47
value_type front() const noexcept
Definition: NdArrayCore.hpp:2806
constexpr double e
eulers number
Definition: Constants.hpp:41
Definition: Coordinate.hpp:44
NdArray< double > solve(const NdArray< double > &inInput, double inThresh=-1.0)
Definition: SVDClass.hpp:116