replaced addition to subtraction in a 2x2 matrix
This commit is contained in:
parent
9b54c0446d
commit
cbcf15e5ca
|
@ -98,7 +98,7 @@ double Matrix::calculateDeterminant(Matrix &arr)
|
||||||
}
|
}
|
||||||
else if (arr.size() == 2)
|
else if (arr.size() == 2)
|
||||||
{
|
{
|
||||||
determinant = arr[0][0] * arr[1][1] + arr[1][0] * arr[0][1];
|
determinant = arr[0][0] * arr[1][1] - arr[1][0] * arr[0][1];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue