STK++ 0.9.13
tutoInvertTriangular.cpp File Reference
#include <STKpp.h>
Include dependency graph for tutoInvertTriangular.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 4 of file tutoInvertTriangular.cpp.

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";
17 stk_cout << a.transpose()*invert(a.transpose());
18 return 0;
19}
#define stk_cout
Standard stk output stream.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
hidden::AlgebraTraits< InvertMatrix< Matrix, hidden::Traits< Matrix >::sizeRows_ > >::Result invert(Matrix const &mat)
Utility function allowing to compute the inverse of a matrix.

References STK::invert(), stk_cout, and STK::ArrayBase< Derived >::transpose().