NUMCXX  0.13.20181108
Numerical library for small projects and teaching purposes
tlapack.cxx
Go to the documentation of this file.
1 #include <iostream>
7 #include <limits>
8 #include <numcxx/numcxx.hxx>
9 #include <iomanip>
10 
11 int main(void)
12 {
13 
14  std::cout.precision(2);
15  std::cout<< std::setw(10);
16  numcxx::DMatrix A{
17  {3,1,0,1,0},
18  {0,3,0,0,1},
19  {0,0,3,0,0},
20  {1,0,0,3,0},
21  {0,1,0,0,3},
22  };
23  std::cout << A << std::endl;
24  numcxx::DSolverLapackLU LapackSolver(A);
25 
26  std::cout << LapackSolver;
27 }
28 
29 
30 
Main header of the library.
int main(void)
Definition: tlapack.cxx:11
Dense matrix class.
Definition: tmatrix.hxx:38
Lapack LU factorization class.