pub trait MapElements<T: CountElements>: Sized + AllocateZeros {
    fn map_into<F: FnMut(&T::Dtype) -> T::Dtype + Copy>(
        inp: &T,
        out: &mut T,
        f: F
    ); fn map_assign<F: FnMut(&mut T::Dtype) + Copy>(inp: &mut T, f: F); fn map<F: FnMut(&T::Dtype) -> T::Dtype + Copy>(inp: &T, f: F) -> Box<T> { ... } }
Expand description

Apply a generic function to all elements of Nd arrays.

Required Methods

Provided Methods

Implementors