PHP Class MathPHP\LinearAlgebra\MatrixDecompositionsTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: markrogoyski/math-php

Public Methods

Method Description
dataProviderForLUDecomposition ( )
dataProviderForRREF ( )
dataProviderForSolve ( )
dataProviderForSolveExceptionNotVectorOrArray ( )
testLUDecomposition ( array $A, array $L, array $U, array $P )
testLUDecompositionExceptionNotSquare ( )
testLUDecompositionPivotize ( array $A, array $_, array $__, array $P )
testRREF ( array $A, array $R )
testRREFAlreadyComputed ( )
testSolveArray ( array $A, array $b, array $expected )
testSolveExceptionNotVectorOrArray ( $b )
testSolveInverse ( array $A, array $b, array $expected )
testSolveRREF ( array $A, array $b, array $expected )
testSolveVector ( array $A, array $b, array $expected )

Method Details

dataProviderForLUDecomposition() public method

dataProviderForRREF() public method

public dataProviderForRREF ( )

dataProviderForSolve() public method

dataProviderForSolveExceptionNotVectorOrArray() public method

testLUDecomposition() public method

public testLUDecomposition ( array $A, array $L, array $U, array $P )
$A array
$L array
$U array
$P array

testLUDecompositionExceptionNotSquare() public method

testLUDecompositionPivotize() public method

public testLUDecompositionPivotize ( array $A, array $_, array $__, array $P )
$A array
$_ array
$__ array
$P array

testRREF() public method

public testRREF ( array $A, array $R )
$A array
$R array

testRREFAlreadyComputed() public method

testSolveArray() public method

public testSolveArray ( array $A, array $b, array $expected )
$A array
$b array
$expected array

testSolveExceptionNotVectorOrArray() public method

testSolveInverse() public method

public testSolveInverse ( array $A, array $b, array $expected )
$A array
$b array
$expected array

testSolveRREF() public method

public testSolveRREF ( array $A, array $b, array $expected )
$A array
$b array
$expected array

testSolveVector() public method

public testSolveVector ( array $A, array $b, array $expected )
$A array
$b array
$expected array