ph-math/src/main/java/com/helger/numbercruncher/matrix/Matrix.java
protected void set (final float values[][])
  {
    m_nRows = values.length;
    m_nCols = values[0].length;
    m_aValues = values;

    for (int r = 1; r < m_nRows; ++r)
    {
      m_nCols = Math.min (m_nCols, values[r].length);
    }
  }
protected void set (final float values[][])
  {
    m_nRows = values.length;
    m_nCols = values[0].length;
    m_aValues = values;

    for (int r = 1; r < m_nRows; ++r)
    {
      m_nCols = Math.min (m_nCols, values[r].length);
    }
  }
protected void set ( final float values [ ] [ ] ) { m_nRows = values . length ; m_nCols = values [ 0 ] . length ; m_aValues = values ; for ( int r = 1 ; r < m_nRows ; ++ r ) { m_nCols = Math . min ( m_nCols , values [ r ] . length ) ; } }
Set this matrix from a 2-d array of values. If the rows do not have the
same length, then the matrix column count is the length of the shortest
row.

@param values
the 2-d array of values
Set this matrix from a 2 - d array of values . If the rows do not have the same length then the matrix column count is the length of the shortest row .