## 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

# 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