STK++ 0.9.13
tutoInvert.cpp
Go to the documentation of this file.
1#include <STKpp.h>
2using namespace STK;
4int main(int argc, char** argv)
5{
7 a << 0, 1, 2, 3,
8 2, 3, 4, 5,
9 2, 1, 6, 7,
10 0, 3,-1, 2;
11 stk_cout << "Inverse general matrix:\n";
12 stk_cout << "-----------------------\n";
13 stk_cout << a*invert(a);
14 stk_cout << "\nInverse upper-symmetric matrix:\n";
15 stk_cout << "-------------------------------\n";
18 stk_cout << "\nInverse lower-symmetric matrix:\n";
19 stk_cout << "-------------------------------\n";
22 return 0;
23}
#define stk_cout
Standard stk output stream.
This file include all the header files of the STK++ project.
LowerSymmetrizeOperator< Derived > const lowerSymmetrize() const
UpperSymmetrizeOperator< Derived > const upperSymmetrize() const
A CArray is a two dimensional array with a continuous storage like a C-array.
Definition STK_CArray.h:130
hidden::AlgebraTraits< InvertMatrix< Matrix, hidden::Traits< Matrix >::sizeRows_ > >::Result invert(Matrix const &mat)
Utility function allowing to compute the inverse of a matrix.
The namespace STK is the main domain space of the Statistical ToolKit project.
int main(int argc, char **argv)
Definition tutoInvert.cpp:4