NumCpp  2.18.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
Loading...
Searching...
No Matches
pinv.hpp
Go to the documentation of this file.
1
28#pragma once
29
32#include "NumCpp/NdArray.hpp"
33
34namespace nc::linalg
35{
36 //============================================================================
37 // Method Description:
45 template<typename dtype>
47 {
49
50 return SVD{ inArray }.pinv();
51 }
52} // namespace nc::linalg
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition StaticAsserts.hpp:56
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:135
Performs the singular value decomposition of a general matrix.
Definition svd/svd.hpp:48
NdArray< double > pinv()
Definition svd/svd.hpp:107
Definition cholesky.hpp:41
NdArray< double > pinv(const NdArray< dtype > &inArray)
Definition pinv.hpp:46