div method

MathMatrix div(
  1. dynamic r
)

Implementation

MathMatrix div( dynamic r ){
	MathMatrix a = MathMatrix( _row, _col );
	if( r is MathMatrix ){
		for( int i = 0; i < _len; i++ ){
			MathValue.copy( a._mat[i], _mat[i].div( r._mat[0] ) );
		}
	} else {
		double rr = ClipMath.toDouble(r);
		for( int i = 0; i < _len; i++ ){
			MathValue.copy( a._mat[i], _mat[i].div( rr ) );
		}
	}
	return a;
}