[][src]Trait tense::TensorCalculus

pub trait TensorCalculus<T> {
    fn sum(self) -> T;
fn norm<P>(self, p: P) -> T
    where
        T: Pow<P, Output = T> + Zero + Sign,
        P: Inv<Output = P> + Clone
; }

Required methods

fn sum(self) -> T

Returns the sum of the coordinates

fn norm<P>(self, p: P) -> T where
    T: Pow<P, Output = T> + Zero + Sign,
    P: Inv<Output = P> + Clone

Returns the p-norm

Loading content...

Implementors

impl<T> TensorCalculus<T> for Tense<T> where
    T: Add<Output = T> + Sub + Mul + Div + Zero + Clone
[src]

Loading content...