ph-math/src/main/java/com/helger/numbercruncher/matrix/Matrix.java
public void print (final int width, @Nonnull final PrintStream aPS)
  {
    final SystemOutAlignRight ar = new SystemOutAlignRight (aPS);

    for (int r = 0; r < m_nRows; ++r)
    {
      ar.print ("Row ", 0);
      ar.print (r + 1, 2);
      ar.print (":", 0);

      for (int c = 0; c < m_nCols; ++c)
      {
        ar.print (m_aValues[r][c], width);
      }
      ar.println ();
    }
  }
public void print (final int width, @Nonnull final PrintStream aPS)
  {
    final SystemOutAlignRight ar = new SystemOutAlignRight (aPS);

    for (int r = 0; r < m_nRows; ++r)
    {
      ar.print ("Row ", 0);
      ar.print (r + 1, 2);
      ar.print (":", 0);

      for (int c = 0; c < m_nCols; ++c)
      {
        ar.print (m_aValues[r][c], width);
      }
      ar.println ();
    }
  }
Print the matrix values.

@param width
the column width