ContractBuilder

Trait ContractBuilder 

Source
pub trait ContractBuilder<'a, T, La, Lb>
where T: 'a, La: Layout, Lb: Layout,
{ // Required methods fn scale(self, factor: T) -> Self; fn eval(self) -> Tensor<T, DynRank>; fn overwrite(self, c: &mut Slice<T>); }
Expand description

Builder interface for configuring tensor contraction operations

Required Methods§

Source

fn scale(self, factor: T) -> Self

Multiplies the result by a scalar factor.

Source

fn eval(self) -> Tensor<T, DynRank>

Returns a new owned tensor containing the result.

Source

fn overwrite(self, c: &mut Slice<T>)

Overwrites the provided tensor with the result.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§