Function nalgebra_glm::abs[][src]

pub fn abs<N: Number, R: Dimension, C: Dimension>(
    x: &TMat<N, R, C>
) -> TMat<N, R, C> where
    DefaultAllocator: Alloc<N, R, C>, 

For each matrix or vector component x if x >= 0; otherwise, it returns -x.