Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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