STK++ 0.9.13
tutoInvertTriangular.cpp
Go to the documentation of this file.
1#include <STKpp.h>
2using namespace STK;
4int main(int argc, char** argv)
5{
7 a << 1,
8 1, 2,
9 3, 4, 3,
10 4, 5, 6, 6,
11 7, 8, 2, 3, 2;
12 stk_cout << "Inverse lower-triangular matrix:\n";
13 stk_cout << "--------------------------------\n";
14 stk_cout << a*invert(a);
15 stk_cout << "\nInverse upper-triangular matrix:\n";
16 stk_cout << "--------------------------------\n";
18 return 0;
19}
#define stk_cout
Standard stk output stream.
This file include all the header files of the STK++ project.
Declaration of the lower triangular matrix class.
TransposeOperator< Derived > const transpose() const
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)