einsum

Function einsum 

Source
pub fn einsum<T: EinsumScalar>(
    notation: &str,
    operands: Vec<MdOperand<'_>>,
) -> Result<Array<T, DynRank>>
Expand description

Parse and evaluate an einsum expression on mdarray operands.

Returns the result as an owned Array<T, DynRank>.

§Example

let c: Array<f64, DynRank> = einsum("ij,jk->ik", vec![(&a).into(), (&b).into()])?;