Eigenvectors

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

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

Parameters

s

  • Input: Tensor to be decomposed into eigenvalues

eval

  • Input: Eigenvalues of the input tensor

eval

  • Output: Eigenvectors of the input tensor