public void add ( int row , int col , double value ) { if ( col < 0 || col >= numCols || row < 0 || row >= numRows ) { throw new IllegalArgumentException ( "Specified element is out of bounds" ) ; } data [ row * numCols + col ] += value ; }
todo move to commonops