NumCpp  2.17.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
Loading...
Searching...
No Matches
eigvals.hpp
Go to the documentation of this file.
1
28#pragma once
29
31#include "NumCpp/Linalg/eig.hpp"
32#include "NumCpp/NdArray.hpp"
33
34namespace nc::linalg
35{
36 //============================================================================
37 // Method Description:
49 template<typename dtype>
50 NdArray<double> eigvals(const NdArray<dtype>& inA, double inTolerance = 1e-12)
51 {
53
54 const auto& [eigenValues, _] = eig(inA, inTolerance);
55
56 return eigenValues;
57 }
58} // namespace nc::linalg
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition StaticAsserts.hpp:39
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
Definition cholesky.hpp:41
std::pair< NdArray< double >, NdArray< double > > eig(const NdArray< dtype > &inA, double inTolerance=1e-12)
Definition eig.hpp:53
NdArray< double > eigvals(const NdArray< dtype > &inA, double inTolerance=1e-12)
Definition eigvals.hpp:50