ass method

MathMatrix ass(
  1. dynamic r
)

Implementation

MathMatrix ass( dynamic r ){
	if( r is MathMatrix ){
		if( r._len == 1 ){
			_resize1();
			MathValue.copy( _mat[0], r._mat[0] );
		} else {
			_resize( r );
			for( int i = 0; i < _len; i++ ){
				MathValue.copy( _mat[i], r._mat[i] );
			}
		}
	} else if( r is MathValue ){
		_resize1();
		MathValue.copy( _mat[0], r );
	} else {
		_resize1();
		_mat[0].ass( ClipMath.toDouble(r) );
	}
	return this;
}