I'm using BOOST library for inversing a matrix and it is giving me bad results like -1.#IND
I was wondering if anybody ran into this problem.
the code is like this:
void tryLib(){
AG_Matrix AG_Matrix_1=AG_Matrix(4,4,3.0);
AG_Matrix AG_Matrix_4=AG_Matrix_1.Inverse();
std::cout<<AG_Matrix_4(1,1)<<'\n';
}
AG_Matrix
is a type definition and the console output is this:
-1.#IND
Press any key to continue . . .
I modified the code and the results are good now, yet I'm not quite sure what the reason was. I will mention the reason here, when I discover it...The determinant was zero, that was the problem as answered below by Mr.Llama ...