code: public static long benchGet(DMatrixRMaj A , int n ) {
  
          long before = System.currentTimeMillis();
  
          double total = 0;
  
          for( int iter = 0; iter < n; iter++ ) {
  
              for( int i = 0; i < A.numRows; i++ ) {
                  for( int j = 0; j < A.numCols; j++ ) {
                      total += A.get(i,j);
                  }
              }
          }
  
          long after = System.currentTimeMillis();
  
          // print to ensure that ensure that an overly smart compiler does not optimize out
          // the whole function and to show that both produce the same results.
          System.out.println(total);
  
          return after-before;
      }
docs: Bounds checks are performed on get(i,j)