code: public static void multRows(double[] values, DMatrixRMaj A) {
          if( values.length < A.numRows ) {
              throw new IllegalArgumentException("Not enough elements in values.");
          }
  
          int index = 0;
          for (int row = 0; row < A.numRows; row++) {
              double v = values[row];
              for (int col = 0; col < A.numCols; col++, index++) {
                  A.data[index] *= v;
              }
          }
      }
docs: Multiplies every element in row i by value[i].
  
  @param values array. Not modified.
  @param A Matrix. Modified.