![]() |
NumCpp
2.16.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Performs the singular value decomposition of a general matrix. More...
#include <SVD.hpp>
Public Member Functions | |
| SVD (const NdArray< dtype > &inMatrix) | |
| NdArray< double > | lstsq (const NdArray< double > &inInput) |
| NdArray< double > | pinv () |
| const NdArray< double > & | s () const noexcept |
| STATIC_ASSERT_ARITHMETIC (dtype) | |
| const NdArray< double > & | u () const noexcept |
| const NdArray< double > & | v () const noexcept |
Static Public Attributes | |
| static constexpr auto | TOLERANCE = 1e-12 |
Performs the singular value decomposition of a general matrix.
|
inlineexplicit |
Constructor
| inMatrix | matrix to perform SVD on |
Returns the pseudo-inverse of the input matrix
|
inlinenoexcept |
the resultant w matrix
| nc::linalg::SVD< dtype >::STATIC_ASSERT_ARITHMETIC | ( | dtype | ) |
|
inlinenoexcept |
the resultant u matrix
|
inlinenoexcept |
the resultant v transpose matrix
|
staticconstexpr |