ParMooN
 All Classes Functions Variables Friends Pages
piecewise_lin_cont.h
1 #include "basictools.h"
2 #include "fepc_easy.h"
3 #include "faltung.h"
4 
6 {
7 public:
8  int n;
9  double* grid; // array of size n + 1 // grid[0] = a, grid[n] = b
10  double* value; // array of size n
11 
12  double integral();
13 };
14 
16 {
17 public:
18  int n;
19  double* grid; // array of size n + 1 // grid[0] = a, grid[n] = b
20  double* start_value; // array of size n
21  double* end_value; // array of size n
22 
23  double integral();
24 };
25 
27 {
28 public:
30 
31  int n;
32  double* grid; // array of size n + 1 // grid[0] = a, grid[n] = b
33  double* coeff; // array of size n + 1 // coefficiets of the basis functions (hat functions). The same as the values at gridpoints.
34 
35  double L1();
36  double integral();
37  double mass();
38 
40 
41  int multiplication_with_function (double* f, piecewise_constant& w);
42  int multiplication_with_function (double* f, piecewise_linear& w);
43 
44  int ProjectToMassConservedExact();
45  int ProjectToMassConservedShift();
46  int ProjectToMassConservedPSD();
47 
48  int IsContinuousProjectionOf(piecewise_constant& f, double* diag, double* subdiag);
49  int IsContinuousProjectionOf(piecewise_linear& f, double* diag, double* subdiag);
50 
51  piecewise_constant DiscontinuosRepresentation();
52 };
53 
54 int fill_diagonal_part_of_Gramm_matrix(int n, double* grid, double* diag);
55 int fill_subdiagonal_part_of_Gramm_matrix(int n, double* grid, double* subdiag);
Definition: piecewise_lin_cont.h:5
Definition: piecewise_lin_cont.h:15
Definition: piecewise_lin_cont.h:26