SyTen

◆ getEigenvalue()

template<typename Scalar >
Scalar syten::getEigenvalue ( DenseTensor< 2, Scalar > const &  o,
DenseTensor< 1, Scalar > const &  v 
)
inline

Returns the eigenvalue of the specified eigenvector relative to the specified matrix.

Parameters
omatrix of which v is an eigenvector
veigenvector of the matrix o
Returns
the eigenvalue \( λ \) s.t. \( o v = λ v \)

If debugging is enabled, a check is made to ensure that v is indeed an eigenvector of o, otherwise, the first nonzero element of v is compared to the corresponding element of o v and the ratio is returned.

References abs(), std::setprecision(), std::numeric_limits::signaling_NaN(), SYTEN_DEBUG_THRESHOLD, SYTEN_ZNORM_THRESHOLD, and to_string_def().

+ Here is the call graph for this function: