ph-math/src/main/java/com/helger/numbercruncher/matrix/LinearSystem.java
public void printDecomposed (final int width, @Nonnull final PrintStream aPS) throws MatrixException
  {
    decompose ();

    final SystemOutAlignRight ar = new SystemOutAlignRight (aPS);

    for (int r = 0; r < m_nRows; ++r)
    {
      final int pr = m_aPermutation[r]; // permuted row index
      ar.print ("Row ", 0);
      ar.print (r + 1, 2);
      ar.print (":", 0);

      for (int c = 0; c < m_nCols; ++c)
      {
        ar.print (m_aLU.m_aValues[pr][c], width);
      }
      ar.println ();
    }
  }
public void printDecomposed (final int width, @Nonnull final PrintStream aPS) throws MatrixException
  {
    decompose ();

    final SystemOutAlignRight ar = new SystemOutAlignRight (aPS);

    for (int r = 0; r < m_nRows; ++r)
    {
      final int pr = m_aPermutation[r]; // permuted row index
      ar.print ("Row ", 0);
      ar.print (r + 1, 2);
      ar.print (":", 0);

      for (int c = 0; c < m_nCols; ++c)
      {
        ar.print (m_aLU.m_aValues[pr][c], width);
      }
      ar.println ();
    }
  }
public void printDecomposed ( final int width , @ Nonnull final PrintStream aPS ) throws MatrixException { decompose ( ) ; final SystemOutAlignRight ar = new SystemOutAlignRight ( aPS ) ; for ( int r = 0 ; r < m_nRows ; ++ r ) { final int pr = m_aPermutation [ r ] ; // permuted row index ar . print ( "Row " , 0 ) ; ar . print ( r + 1 , 2 ) ; ar . print ( ":" , 0 ) ; for ( int c = 0 ; c < m_nCols ; ++ c ) { ar . print ( m_aLU . m_aValues [ pr ] [ c ] , width ) ; } ar . println ( ) ; } }
Print the decomposed matrix LU.

@param width
the column width
@throws MatrixException
if an error occurred
Print the decomposed matrix LU .