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
8inline sp_mat operator*(const Divergence &div, const Gradient &grad)
9{
10 return (sp_mat)div*(sp_mat)grad;
11}
12
13inline sp_mat operator+(const Laplacian &lap, const RobinBC &bc)
14{
15 return (sp_mat)lap+(sp_mat)bc;
16}
17
18inline vec operator*(const Divergence &div, const vec &v)
19{
20 return (sp_mat)div*v;
21}
22
23inline vec operator*(const Gradient &grad, const vec &v)
24{
25 return (sp_mat)grad*v;
26}
27
28inline vec operator*(const Laplacian &lap, const vec &v)
29{
30 return (sp_mat)lap*v;
31}
32
33inline vec operator*(const Interpol &I, const vec &v)
34{
35 return (sp_mat)I*v;
36}
37
38#endif // OPERATORS_H
sp_mat operator+(const Laplacian &lap, const RobinBC &bc)
Definition operators.h:13
sp_mat operator*(const Divergence &div, const Gradient &grad)
Definition operators.h:8