51 template<
typename dtype>
59 svd(inArray, u, d, v);
61 const auto inShape = inArray.
shape();
62 auto dPlus = nc::zeros<double>(inShape.cols, inShape.rows);
66 dPlus(i, i) = 1.0 / d(i, i);
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition: StaticAsserts.hpp:49
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4276
NdArray< dtype > transpose() const
Definition: NdArrayCore.hpp:4650
NdArray< dtype > dot(const NdArray< dtype > &inOtherArray) const
Definition: NdArrayCore.hpp:2623
void svd(const NdArray< dtype > &inArray, NdArray< double > &outU, NdArray< double > &outS, NdArray< double > &outVt)
Definition: svd.hpp:53
NdArray< double > pinv(const NdArray< dtype > &inArray)
Definition: pinv.hpp:52
Definition: Coordinate.hpp:45
std::uint32_t uint32
Definition: Types.hpp:40