ndarray_cg 0.4.0

High-performance computer graphics mathematics library based on ndarray with vectors, matrices, and transformations
Documentation
mod private
{
  use crate::*;
  // use vector::arithmetics::inner_product::*;
  use vector::{ div_scalar, div_mut };

  impl< E, const LEN : usize > Div< E > for Vector< E, LEN >
  where
    E : MatEl + NdFloat
  {
    type Output = Self;

    fn div(self, rhs : E) -> Self::Output
    {
      div_scalar( &self, rhs )
    }
  }

  impl< E, const LEN : usize > DivAssign< E > for Vector< E, LEN >
  where
    E : MatEl + NdFloat
  {
    fn div_assign( &mut self, rhs : E )
    {
        *self = *self / rhs;
    }
  }

  impl< E, const LEN : usize > DivAssign for Vector< E, LEN >  
  where
    E : MatEl + NdFloat
  {
    fn div_assign( &mut self, rhs: Self ) 
    {
      div_mut( self, &rhs );
    }
  }

}

crate::mod_interface!
{

}