NUMCXX
0.13.20181108
Numerical library for small projects and teaching purposes
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
examples
test
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
numcxx.hxx
Main header of the library.
main
int main(void)
Definition:
tlapack.cxx:11
numcxx::TMatrix
Dense matrix class.
Definition:
tmatrix.hxx:38
numcxx::TSolverLapackLU
Lapack LU factorization class.
Definition:
tsolver-lapacklu.hxx:18
Generated on Thu Nov 8 2018 22:52:26 for NUMCXX by
1.8.11