ph-math/src/main/java/com/helger/numbercruncher/matrix/Matrix.java
public void set (final int r, final int c, final float value) throws MatrixException
  {
    if ((r < 0) || (r >= m_nRows) || (c < 0) || (c >= m_nCols))
    {
      throw new MatrixException (MatrixException.INVALID_INDEX);
    }

    m_aValues[r][c] = value;
  }
public void set (final int r, final int c, final float value) throws MatrixException
  {
    if ((r < 0) || (r >= m_nRows) || (c < 0) || (c >= m_nCols))
    {
      throw new MatrixException (MatrixException.INVALID_INDEX);
    }

    m_aValues[r][c] = value;
  }
public void set ( final int r , final int c , final float value ) throws MatrixException { if ( ( r < 0 ) || ( r >= m_nRows ) || ( c < 0 ) || ( c >= m_nCols ) ) { throw new MatrixException ( MatrixException . INVALID_INDEX ) ; } m_aValues [ r ] [ c ] = value ; }
Set the value of element [r,c].

@param r
the row index
@param c
the column index
@param value
the value
@throws MatrixException
for an invalid index
Set the value of element [ r c ] .