49 template<
typename dtype>
57 svd(inArray, u, d, v);
59 const auto inShape = inArray.
shape();
60 auto dPlus = nc::zeros<double>(inShape.cols, inShape.rows);
64 dPlus(i, i) = 1. / d(i, i);
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition: StaticAsserts.hpp:56
self_type transpose() const
Definition: NdArrayCore.hpp:4882
self_type dot(const self_type &inOtherArray) const
Definition: NdArrayCore.hpp:2719
const Shape & shape() const noexcept
Definition: NdArrayCore.hpp:4511
Definition: cholesky.hpp:41
NdArray< double > pinv(const NdArray< dtype > &inArray)
Definition: pinv.hpp:50
void svd(const NdArray< dtype > &inArray, NdArray< double > &outU, NdArray< double > &outS, NdArray< double > &outVt)
Definition: svd.hpp:51
std::uint32_t uint32
Definition: Types.hpp:40