docs: public static double elementSum( DMatrixD1 mat ) {
          double total = 0;
  
          int size = mat.getNumElements();
  
          for( int i = 0; i < size; i++ ) {
              total += mat.get(i);
          }
  
          return total;
      }