Go to the documentation of this file.
54 cout <<
"\n LU decomposition test \n";
55 cout <<
"initial matrix: \n";
57 cout <<
" " << a(0,0) << endl;
65 cout <<
"\n after decomposition";
66 cout <<
" " << b(0,0) << endl;
85 cout << indx[0] <<
" " << c[0] << endl;
90 cout <<
"\n solution vector x";
133 cout <<
"\n LU decomposition test \n";
134 cout <<
"initial matrix: \n";
135 for(
Index i = 0; i<4; i++)
138 for (
Index j = 0; j<4; j++)
139 cout <<
" " << a(i,j);
149 cout <<
"\n after decomposition";
150 for(
Index i = 0; i<4; i++)
152 for (
Index j = 0; j<4; j++)
153 cout <<
" " << b(i,j);
163 for(
Index i = 0; i<4; i++) l(i,i) = 1.0;
168 cout <<
"\n Matrix L";
169 for(
Index i = 0; i<4; i++)
172 for (
Index j = 0; j<4; j++)
173 cout <<
" " << l(i,j);
184 cout <<
"\n Matrix U";
185 for(
Index i = 0; i<4; i++)
188 for (
Index j = 0; j<4; j++)
189 cout <<
" " << u(i,j);
197 cout <<
"\n product L*U";
198 for(
Index i = 0; i<4; i++)
201 for (
Index j = 0; j<4; j++)
202 cout <<
" " << lu(i,j);
221 cout <<
"\n vector indx";
222 for (
Index i=0; i<4; i++)
225 cout << indx[i] <<
" " << c[i];
231 cout <<
"\n solution vector x" << endl;
232 for (
Index i=0; i<4; i++)
238 cout <<
"\n test solution LU*x";
241 for (
Index i=0; i<4; i++)
283 cout <<
"\n Exponential of Matrix K";
284 for(
Index i = 0; i<4; i++)
287 for (
Index j = 0; j<4; j++)
288 cout <<
" " << F(i,j);
310 cout <<
"\n Exponential of Matrix A:\n";
341 cout <<
"\n Exponential of Matrix A";
342 for(
Index i = 0; i<3; i++)
345 for (
Index j = 0; j<3; j++)
346 cout <<
" " << F(i,j);
This file contains the definition of Array.
void matrix_exp(MatrixView F, ConstMatrixView A, const Index &q)
Exponential of a Matrix.
void ludcmp(MatrixView LU, ArrayOfIndex &indx, ConstMatrixView A)
LU decomposition.
void test_matrix_exp3D(void)
Test for the matrix exponential function (3D matrix)
void test_matrix_exp4D(void)
Test for the matrix exponential function (4D matrix)
void mult(VectorView y, const ConstMatrixView &M, const ConstVectorView &x)
Matrix Vector multiplication.
void test_lusolve4D(void)
Linear algebra functions.
The class MakeVector is a special kind of Vector that can be initialized explicitly from one or more ...
void test_matrix_exp1D(void)
Test for the matrix exponential function (3D matrix)
void test_lusolve1D(void)
INDEX Index
The type to use for all integer numbers and indices.
void lubacksub(VectorView x, ConstMatrixView LU, ConstVectorView b, const ArrayOfIndex &indx)
LU backsubstitution.