pub fn eigen<T: Scalar>(_tensor: &Tensor<T>) -> Result<EigenResult<T>>Expand description
Compute the eigendecomposition of a batched square matrix.
Input shape: (n, n, *). Must be column-major contiguous.
§Examples
ⓘ
use tenferro_linalg::eigen;
use tenferro_tensor::{Tensor, MemoryOrder};
use tenferro_device::LogicalMemorySpace;
let a = Tensor::<f64>::zeros(&[3, 3],
LogicalMemorySpace::MainMemory, MemoryOrder::ColumnMajor);
let result = eigen(&a).unwrap();§Errors
Returns an error if the input has fewer than 2 dimensions or the first two dimensions are not equal.