libode
Easy to compile, fast ODE integrators as C++ classes
Loading...
Searching...
No Matches
ode_linalg.h
Go to the documentation of this file.
1#ifndef ODE_LINALG_H_
2#define ODE_LINALG_H_
3
5
6#include <cmath>
7#include <cstdio>
8#include <cstdlib>
9
10namespace ode {
11
13
21void ode_crout_forw_sub (double **L, double *b, int *p, int n, double *out);
22
24
32void ode_back_sub (double **U, double *b, int n, double *out);
33
35
42void ode_crout_LU (double **A, int n, int *p);
43
45
52void ode_solve_LU (double **LU, int *p, double *b, int n, double *out);
53
55
61void ode_solve_A (double **A, double *b, int n, double *out);
62
64
86void ode_solve_tridiag (double **T, double *r, double *temp, int n, double *out);
87
88} // namespace ode
89
90#endif
void ode_solve_LU(double **LU, int *p, double *b, int n, double *out)
Solves a matrix equation where the matrix has already be crout LU decomposed.
Definition ode_linalg.cc:76
void ode_back_sub(double **U, double *b, int n, double *out)
Backward substitution.
Definition ode_linalg.cc:18
void ode_solve_A(double **A, double *b, int n, double *out)
Solves a matrix equation A x = b with crout LU decomposition.
Definition ode_linalg.cc:84
void ode_crout_LU(double **A, int n, int *p)
Crout LU decomposition.
Definition ode_linalg.cc:29
void ode_crout_forw_sub(double **L, double *b, int *p, int n, double *out)
Crout forward substitution.
Definition ode_linalg.cc:7
void ode_solve_tridiag(double **T, double *r, double *temp, int n, double *out)
Solves a tridiagonal matrix equation.
Definition ode_linalg.cc:98