Module tensordynlen

Module tensordynlen 

Source
Expand description

Dynamic-length tensor implementation.

Structs§

TensorDynLen
Tensor with dynamic rank (number of indices) and dynamic scalar type.

Traits§

RandomScalar
Trait for scalar types that can generate random values from a standard normal distribution.
TensorAccess
Trait for accessing tensor index metadata.

Functions§

compute_permutation_from_indices
Compute the permutation array from original indices to new indices.
diag_tensor_dyn_len
Create a diagonal tensor with dynamic rank from diagonal data.
unfold_split
Unfold a tensor into a matrix by splitting indices into left and right groups.