einsum_with_subscripts

Function einsum_with_subscripts 

Source
pub fn einsum_with_subscripts<T: Scalar + HasAlgebra>(
    subscripts: &Subscripts,
    operands: &[&Tensor<T>],
) -> Result<Tensor<T>>
Expand description

Execute einsum with pre-built Subscripts.

Avoids re-parsing the subscript string on each call. Useful when the same contraction pattern is applied to tensors of varying shapes.

ยงErrors

Returns an error if tensor shapes are incompatible with the subscripts.