Go to the documentation of this file.
67 for (
Index i=0; i<dim; i++)
71 for (
Index j=0; j<dim; j++)
73 if ((
temp =
abs(LU(i,j))) > big)
77 throw runtime_error(
"ludcmp: Matrix is singular");
81 for (
Index j=0; j<dim; j++)
83 for (
Index i=0; i<j; i++)
86 for (
Index k=0; k<i; k++)
87 sum -= LU(i,k)*LU(k,j);
91 for(
Index i=j; i<dim; i++)
94 for (
Index k=0; k<j; k++)
95 sum -= LU(i,k)*LU(k,j);
97 if( (dum = vv[i]*fabs(sum)) >= big)
105 for(
Index k=0; k<dim; k++)
108 LU(imax,k) = LU(j,k);
117 if(LU(j,j) == 0.0) LU(j,j) = TINY;
122 for (
Index i=j+1; i<dim; i++)
157 for(
Index i=0; i<dim; i++)
162 for (
Index i=0; i<dim; i++)
165 for (
Index j=0; j<=i-1; j++)
170 for(
Index i=dim-1; i>=0; i--)
173 for (
Index j=i+1; j<dim; j++)
200 Matrix D(n,n),
N(n,n), X(n,n), cX(n,n,0.0), B(n,n,0.0);
201 Vector N_col_vec(n,0.), F_col_vec(n,0.);
210 j = 1 + floor(1./log(2.)*log(A_norm_inf));
231 c *= (q_n-k_n+1)/((2*q_n-k_n+1)*k_n);
249 for(
Index i=0; i<n; i++)
252 lubacksub(F_col_vec, X, N_col_vec, indx);
253 F(
joker,i) = F_col_vec;
257 for(
Index k=0; k<j_index; k++)
284 row_sum +=
abs(A(i,j));
302 assert(n == I.
nrows());
305 for(
Index i=0; i<n; i++)
void id_mat(MatrixView I)
Identity Matrix.
Index nrows() const
Returns the number of rows.
This file contains the definition of Array.
void matrix_exp(MatrixView F, ConstMatrixView A, const Index &q)
Exponential of a Matrix.
bool is_size(ConstVectorView x, const Index &n)
Verifies that the size of x is l.
void ludcmp(MatrixView LU, ArrayOfIndex &indx, ConstMatrixView A)
LU decomposition.
void mult(VectorView y, const ConstMatrixView &M, const ConstVectorView &x)
Matrix Vector multiplication.
Index ncols() const
Returns the number of columns.
NUMERIC Numeric
The type to use for all floating point numbers.
Linear algebra functions.
The class MakeVector is a special kind of Vector that can be initialized explicitly from one or more ...
A constant view of a Matrix.
Header file for logic.cc.
INDEX Index
The type to use for all integer numbers and indices.
A constant view of a Vector.
Numeric norm_inf(ConstMatrixView A)
Maximum absolute row sum norm.
void lubacksub(VectorView x, ConstMatrixView LU, ConstVectorView b, const ArrayOfIndex &indx)
LU backsubstitution.
The global header file for ARTS.