ARTS 2.5.9 (git: 825fa5f2)
lin_alg.h
Go to the documentation of this file.
1/* Copyright (C) 2002-2012 Claudia Emde <claudia.emde@dlr.de>
2
3 This program is free software; you can redistribute it and/or modify it
4 under the terms of the GNU General Public License as published by the
5 Free Software Foundation; either version 2, or (at your option) any
6 later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 USA.
17*/
18
28#ifndef linalg_h
29#define linalg_h
30
31#include "matpack_complex.h"
32#include "matpackIII.h"
33
34// LU decomposition
35void ludcmp(Matrix& LU, ArrayOfIndex& indx, ConstMatrixView A);
36
37// LU backsubstitution
41 const ArrayOfIndex& indx);
42
43// Solve linear system
45
46// Matrix inverse
47void inv(MatrixView Ainv, ConstMatrixView A);
48
49// Matrix inverse
51
52// Matrix diagonalization with lapack
54
55// Matrix diagonalization with lapack
59
60// Exponential of a Matrix
61void matrix_exp(MatrixView F, ConstMatrixView A, const Index& q = 10);
62
63// Maximum absolute row sum norm
65
66// Identity Matrix
67void id_mat(MatrixView I);
68
70
72
73
86Numeric lsf(VectorView x, ConstMatrixView A, ConstVectorView y, bool residual=true) noexcept;
87
88#endif // linalg_h
The ComplexMatrixView class.
The ComplexVectorView class.
A constant view of a ComplexMatrix.
A constant view of a Matrix.
Definition: matpackI.h:1065
A constant view of a Vector.
Definition: matpackI.h:521
The MatrixView class.
Definition: matpackI.h:1188
The Matrix class.
Definition: matpackI.h:1285
The VectorView class.
Definition: matpackI.h:674
The Vector class.
Definition: matpackI.h:910
void linreg(Vector &p, ConstVectorView x, ConstVectorView y)
Definition: lin_alg.cc:548
void id_mat(MatrixView I)
Identity Matrix.
Definition: lin_alg.cc:488
void solve(VectorView x, ConstMatrixView A, ConstVectorView b)
Solve a linear system.
Definition: lin_alg.cc:139
Numeric norm_inf(ConstMatrixView A)
Maximum absolute row sum norm.
Definition: lin_alg.cc:471
void diagonalize(MatrixView P, VectorView WR, VectorView WI, ConstMatrixView A)
Matrix Diagonalization.
Definition: lin_alg.cc:250
void lubacksub(VectorView x, ConstMatrixView LU, ConstVectorView b, const ArrayOfIndex &indx)
LU backsubstitution.
Definition: lin_alg.cc:92
Numeric lsf(VectorView x, ConstMatrixView A, ConstVectorView y, bool residual=true) noexcept
Least squares fitting by solving x for known A and y.
Definition: lin_alg.cc:596
void ludcmp(Matrix &LU, ArrayOfIndex &indx, ConstMatrixView A)
LU decomposition.
Definition: lin_alg.cc:57
Numeric det(ConstMatrixView A)
Definition: lin_alg.cc:504
void inv(MatrixView Ainv, ConstMatrixView A)
Matrix Inverse.
Definition: lin_alg.cc:168
void matrix_exp(MatrixView F, ConstMatrixView A, const Index &q=10)
General exponential of a Matrix.
Definition: lin_alg.cc:396
NUMERIC Numeric
The type to use for all floating point numbers.
Definition: matpack.h:33
INDEX Index
The type to use for all integer numbers and indices.
Definition: matpack.h:39
#define b