NumCpp  2.16.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
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
constexpr double e
eulers number
Definition: Core/Constants.hpp:37
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