pub trait ContractWith<Rhs> {
type Output;
// Required method
fn contract_with(&self, rhs: &Rhs) -> Self::Output;
}Expand description
The full contraction of two tensors whose units need not agree.
Tensor::full_contraction contracts a tensor with another of its own type
and gives a number. Contracting tensors of different units gives a quantity
whose unit is the product of theirs — a stress with a rate is a power
density — which is what erased views used to stand in for.
Required Associated Types§
Required Methods§
Sourcefn contract_with(&self, rhs: &Rhs) -> Self::Output
fn contract_with(&self, rhs: &Rhs) -> Self::Output
Returns the full contraction with the other tensor.