PHP Class MathPHP\LinearAlgebra\MatrixDecompositionsTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: markrogoyski/math-php

Méthodes publiques

Méthode 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 méthode

dataProviderForRREF() public méthode

public dataProviderForRREF ( )

dataProviderForSolve() public méthode

dataProviderForSolveExceptionNotVectorOrArray() public méthode

testLUDecomposition() public méthode

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

testLUDecompositionExceptionNotSquare() public méthode

testLUDecompositionPivotize() public méthode

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

testRREF() public méthode

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

testRREFAlreadyComputed() public méthode

testSolveArray() public méthode

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

testSolveExceptionNotVectorOrArray() public méthode

testSolveInverse() public méthode

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

testSolveRREF() public méthode

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

testSolveVector() public méthode

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