Mimetic Operators Library Enhanced
4.0
Loading...
Searching...
No Matches
operators.h
Go to the documentation of this file.
1
#ifndef OPERATORS_H
2
#define OPERATORS_H
3
4
#include "
laplacian.h
"
5
#include "
interpol.h
"
6
#include "
robinbc.h
"
7
8
inline
sp_mat
operator*
(
const
Divergence
&div,
const
Gradient
&grad)
9
{
10
return
(sp_mat)div*(sp_mat)grad;
11
}
12
13
inline
sp_mat
operator+
(
const
Laplacian
&lap,
const
RobinBC
&bc)
14
{
15
return
(sp_mat)lap+(sp_mat)bc;
16
}
17
18
inline
vec
operator*
(
const
Divergence
&div,
const
vec &v)
19
{
20
return
(sp_mat)div*v;
21
}
22
23
inline
vec
operator*
(
const
Gradient
&grad,
const
vec &v)
24
{
25
return
(sp_mat)grad*v;
26
}
27
28
inline
vec
operator*
(
const
Laplacian
&lap,
const
vec &v)
29
{
30
return
(sp_mat)lap*v;
31
}
32
33
inline
vec
operator*
(
const
Interpol
&I,
const
vec &v)
34
{
35
return
(sp_mat)I*v;
36
}
37
38
#endif
// OPERATORS_H
Divergence
Definition
divergence.h:8
Gradient
Definition
gradient.h:8
Interpol
Definition
interpol.h:8
Laplacian
Definition
laplacian.h:8
RobinBC
Definition
robinbc.h:7
interpol.h
laplacian.h
operator+
sp_mat operator+(const Laplacian &lap, const RobinBC &bc)
Definition
operators.h:13
operator*
sp_mat operator*(const Divergence &div, const Gradient &grad)
Definition
operators.h:8
robinbc.h
mole_C++
operators.h
Generated by
1.10.0