Overview

Namespaces

  • Chippyash
    • Math
      • Matrix
        • Attribute
        • Computation
          • Add
          • Div
          • Mul
          • Sub
        • Decomposition
        • Derivative
          • Strategy
            • Determinant
        • Exceptions
        • Formatter
          • DirectedGraph
        • Interfaces
        • Special
        • Traits
        • Transformation
          • Strategy
            • Invert

Classes

  • AbstractDecomposition
  • GaussJordanElimination
  • Lu
  • Overview
  • Namespace
  • Class
  • Tree

Class GaussJordanElimination

Gauss Jordan Elimination

This is largely copied from the moc/math library with variation to fit this library and it's use of strong numeric types.

Unlike the original, this does not alter the original matrices and returns (a clone of) itself to fit with the Decomposition interface.

The inline comments are largely the same, so hopefully the original authors will recognise it :-)

Chippyash\Math\Matrix\Decomposition\AbstractDecomposition implements Chippyash\Math\Matrix\Interfaces\DecompositionInterface
Extended by Chippyash\Math\Matrix\Decomposition\GaussJordanElimination uses Chippyash\Matrix\Traits\AssertParameterIsMatrix (not available) Chippyash\Math\Matrix\Traits\AssertMatrixIsNumeric, Chippyash\Matrix\Traits\AssertMatrixIsSquare (not available) Chippyash\Matrix\Traits\AssertMatrixRowsAreEqual (not available) Chippyash\Math\Matrix\Traits\CreateCorrectMatrixType
Namespace: Chippyash\Math\Matrix\Decomposition
Located at Decomposition/GaussJordanElimination.php
Methods summary
public Chippyash\Math\Matrix\DecompositionAbstractDecomposition
# decompose( Chippyash\Math\Matrix\NumericMatrix $mA, Chippyash\Math\Matrix\NumericMatrix $extra = null )

Perform Guass Jordan Elimination on the two supplied matrices

Perform Guass Jordan Elimination on the two supplied matrices

Parameters

$mA
First matrix to act on - required
$extra
Second matrix to act upon - required

Returns

Chippyash\Math\Matrix\DecompositionAbstractDecomposition
Fluent Interface

Throws

Chippyash\Math\Matrix\Exceptions\SingularMatrixException
Methods inherited from Chippyash\Math\Matrix\Decomposition\AbstractDecomposition
__get(), __invoke(), product()
Chippyash Math Matrix API documentation generated by ApiGen