This is the basic C++ program of C++ armadillo library which shows how to find inverse of the given matrix. It can be carried out by the help of inbuilt function "inv" in armadillo library.
If A is not square sized, a std::logic_error exception is thrown
If A appears to be singular:
B = inv(A) resets B and throws a std::runtime_error exception
inv(B,A) resets B and returns a bool set to false (exception is not thrown)
Comments