Eigenvalues

This function calculates and returns the eigenvalues eval of the input tensor s.

template <typename T>
inline __host__ __device__ void calc_eigen_values(T* s, T* eval)

Parameters

s

  • Input: Tensor to be decomposed into eigenvalues

eval

  • Output: Eigenvalues of the input tensor