56 template<
typename dtype>
61 SVD svdSolver(inA.template astype<double>());
62 const double threshold = inTolerance * svdSolver.
s().
front();
64 return svdSolver.
solve(inB.template astype<double>(), threshold);
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:39
const_reference front() const noexcept
Definition: NdArrayCore.hpp:2860
Definition: SVDClass.hpp:47
NdArray< double > solve(const NdArray< double > &inInput, double inThresh=-1.)
Definition: SVDClass.hpp:110
const NdArray< double > & s() noexcept
Definition: SVDClass.hpp:96
constexpr double e
eulers number
Definition: Core/Constants.hpp:37
Definition: cholesky.hpp:41
NdArray< double > lstsq(const NdArray< dtype > &inA, const NdArray< dtype > &inB, double inTolerance=1e-12)
Definition: lstsq.hpp:57