removed printout
This commit is contained in:
parent
9894935e99
commit
90f3f8ef1f
@ -210,8 +210,6 @@ class MatrixOperations {
|
|||||||
determinant = determinant + (mat[0][i] * (mat[1][(i + 1) % 3] * mat[2][(i + 2) % 3] -
|
determinant = determinant + (mat[0][i] * (mat[1][(i + 1) % 3] * mat[2][(i + 2) % 3] -
|
||||||
mat[1][(i + 2) % 3] * mat[2][(i + 1) % 3]));
|
mat[1][(i + 2) % 3] * mat[2][(i + 1) % 3]));
|
||||||
}
|
}
|
||||||
// cout<<"\n\ndeterminant: "<<determinant;
|
|
||||||
// cout<<"\n\nInverse of matrix is: \n";
|
|
||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 3; i++) {
|
||||||
for (j = 0; j < 3; j++) {
|
for (j = 0; j < 3; j++) {
|
||||||
output[i * 3 + j] = ((mat[(j + 1) % 3][(i + 1) % 3] * mat[(j + 2) % 3][(i + 2) % 3]) -
|
output[i * 3 + j] = ((mat[(j + 1) % 3][(i + 1) % 3] * mat[(j + 2) % 3][(i + 2) % 3]) -
|
||||||
|
Loading…
Reference in New Issue
Block a user