subAndAss method
Implementation
MathMatrix subAndAss( dynamic r ){
if( r is MathMatrix ){
if( r._len == 1 ){
_resize1();
_mat[0].subAndAss( r._mat[0] );
} else {
int i, j;
resize(
(_row > r._row) ? _row : r._row,
(_col > r._col) ? _col : r._col
);
for( i = 0; i < _row; i++ ){
for( j = 0; j < _col; j++ ){
_val( i, j ).subAndAss( r.val( i, j ) );
}
}
}
} else {
_resize1();
_mat[0].subAndAss( ClipMath.toDouble(r) );
}
return this;
}