NumCpp  2.16.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
pinv.hpp
Go to the documentation of this file.
1
28#pragma once
29
30#include <string>
31
33#include "NumCpp/Core/Types.hpp"
35#include "NumCpp/NdArray.hpp"
36
37namespace nc::linalg
38{
39 //============================================================================
40 // Method Description:
48 template<typename dtype>
50 {
52
53 return SVD{ inArray }.pinv();
54 }
55} // namespace nc::linalg
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition: StaticAsserts.hpp:56
Performs the singular value decomposition of a general matrix.
Definition: svd/SVD.hpp:50
Definition: cholesky.hpp:41
NdArray< double > pinv(const NdArray< dtype > &inArray)
Definition: pinv.hpp:49