Module tensor

Module tensor 

Source
Expand description

Stride-based tensor type with zero-copy views.

The Tensor type supports:

  • Zero-copy permute and reshape operations
  • Automatic contiguous copy when needed for GEMM
  • Generic over algebra and backend

Structs§

Tensor
A multi-dimensional tensor with stride-based layout.
TensorView
A borrowed view into a tensor.

Functions§

compute_contiguous_strides
Compute contiguous strides for column-major (Fortran) layout.