code: public RowVector multiply(RowVector rv) throws MatrixException
      {
          // Validate rv's size.
          if (nCols != rv.nCols) {
              throw new MatrixException(
                                  MatrixException.INVALID_DIMENSIONS);
          }
  
          double pv[] = new double[nRows];  // product values
  
          // Compute the values of the product.
          for (int c = 0; c < nCols; ++c) {
              double dot = 0;
              for (int r = 0; r < nRows; ++r) {
                  dot += rv.values[0][r] * values[r][c];
              }
              pv[c] = dot;
          }
  
          return new RowVector(pv);
      }
docs: Multiply a row vector by this matrix: rv*this
  @param rv the row vector
  @return the product row vector
  @throws numbercruncher.MatrixException for invalid size