Trait glm::GenNum [] [src]

pub trait GenNum<E: BaseNum>: Copy + Sized + Clone + One + Zero + Div<Self, Output = Self> + Rem<Self, Output = Self> + Add<E, Output = Self> + Mul<E, Output = Self> + Rand {
    fn from_s(x: E) -> Self;
    fn map<F>(self, f: F) -> Self
    where
        F: Fn(E) -> E
; fn zip<F>(self, y: Self, f: F) -> Self
    where
        F: Fn(E, E) -> E
; fn split<F>(self, f: F) -> (Self, Self)
    where
        F: Fn(E) -> (E, E)
; fn map2<F>(self, y: Self, f: F) -> (Self, Self)
    where
        F: Fn(E, E) -> (E, E)
; }

Generic numeric type.

Required Methods

Constructs from a scalar number.

Implementors