Added some more Matrix tests

This commit is contained in:
Jeff Moser
2010-09-01 08:21:10 -04:00
parent 12417dc874
commit 9325d14bfb
2 changed files with 103 additions and 2 deletions

View File

@ -105,7 +105,7 @@ class Matrix
// I expand along the first row
for ($currentColumn = 0; $currentColumn < $this->_columnCount; $currentColumn++)
{
$firstRowColValue = $this->_matrixRowValues[0][$currentColumn];
$firstRowColValue = $this->_matrixRowData[0][$currentColumn];
$cofactor = $this->getCofactor(0, $currentColumn);
$itemToAdd = $firstRowColValue*$cofactor;
$result = $result + $itemToAdd;
@ -277,7 +277,7 @@ class Matrix
continue;
}
$result[$currentRow][$currentColumn] = $this->_matrixRowData[$currentRow][$currentColumn];
$result[$actualRow][$actualCol] = $this->_matrixRowData[$currentRow][$currentColumn];
$actualCol++;
}