Trait diffgeom::tensors::Variance
[−]
[src]
pub trait Variance { type Rank: Unsigned + Add<U1>; fn variance() -> Vec<IndexType>; fn rank() -> usize { ... } }
Trait identifying a type as representing a tensor variance. It is implemented for
CovariantIndex
, ContravariantIndex
and tuples (Index, Variance).
Associated Types
Required Methods
Provided Methods
Implementors
impl Variance for ()
impl Variance for ContravariantIndex
impl Variance for CovariantIndex
impl<T, U> Variance for (T, U) where U: Variance, Add1<U::Rank>: Unsigned + Add<U1>, T: TensorIndex