Mimetic Operators Library Enhanced 4.0
Loading...
Searching...
No Matches
operators.h File Reference
#include "interpol.h"
#include "laplacian.h"
#include "mixedbc.h"
#include "robinbc.h"
Include dependency graph for operators.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

sp_mat operator* (const Divergence &div, const Gradient &grad)
sp_mat operator+ (const Laplacian &lap, const RobinBC &bc)
sp_mat operator+ (const Laplacian &lap, const MixedBC &bc)
vec operator* (const Divergence &div, const vec &v)
vec operator* (const Gradient &grad, const vec &v)
vec operator* (const Laplacian &lap, const vec &v)
vec operator* (const Interpol &I, const vec &v)
sp_mat operator* (const double scalar, const Interpol &I)
sp_mat operator* (const Interpol &I, const double scalar)
sp_mat operator* (const double scalar, const Laplacian &L)
sp_mat operator* (const Laplacian &L, const double scalar)
sp_mat operator* (const double scalar, const RobinBC &bc)
sp_mat operator* (const RobinBC &bc, const double scalar)

Function Documentation

◆ operator*() [1/11]

sp_mat operator* ( const Divergence & div,
const Gradient & grad )
inline

Definition at line 32 of file operators.h.

32 {
33 return (sp_mat)div * (sp_mat)grad;
34}

◆ operator*() [2/11]

vec operator* ( const Divergence & div,
const vec & v )
inline

Definition at line 44 of file operators.h.

44 {
45 return (sp_mat)div * v;
46}

◆ operator*() [3/11]

sp_mat operator* ( const double scalar,
const Interpol & I )
inline

Definition at line 61 of file operators.h.

61 {
62 return scalar * (sp_mat)I;
63}

◆ operator*() [4/11]

sp_mat operator* ( const double scalar,
const Laplacian & L )
inline

Definition at line 69 of file operators.h.

69 {
70 return scalar * (sp_mat)L;
71}

◆ operator*() [5/11]

sp_mat operator* ( const double scalar,
const RobinBC & bc )
inline

Definition at line 77 of file operators.h.

77 {
78 return scalar * (sp_mat)bc;
79}

◆ operator*() [6/11]

vec operator* ( const Gradient & grad,
const vec & v )
inline

Definition at line 48 of file operators.h.

48 {
49 return (sp_mat)grad * v;
50}

◆ operator*() [7/11]

sp_mat operator* ( const Interpol & I,
const double scalar )
inline

Definition at line 65 of file operators.h.

65 {
66 return scalar * (sp_mat)I;
67}

◆ operator*() [8/11]

vec operator* ( const Interpol & I,
const vec & v )
inline

Definition at line 56 of file operators.h.

56 {
57 return (sp_mat)I * v;
58}

◆ operator*() [9/11]

sp_mat operator* ( const Laplacian & L,
const double scalar )
inline

Definition at line 73 of file operators.h.

73 {
74 return scalar * (sp_mat)L;
75}

◆ operator*() [10/11]

vec operator* ( const Laplacian & lap,
const vec & v )
inline

Definition at line 52 of file operators.h.

52 {
53 return (sp_mat)lap * v;
54}

◆ operator*() [11/11]

sp_mat operator* ( const RobinBC & bc,
const double scalar )
inline

Definition at line 81 of file operators.h.

81 {
82 return scalar * (sp_mat)bc;
83}

◆ operator+() [1/2]

sp_mat operator+ ( const Laplacian & lap,
const MixedBC & bc )
inline

Definition at line 40 of file operators.h.

40 {
41 return (sp_mat)lap + (sp_mat)bc;
42}

◆ operator+() [2/2]

sp_mat operator+ ( const Laplacian & lap,
const RobinBC & bc )
inline

Definition at line 36 of file operators.h.

36 {
37 return (sp_mat)lap + (sp_mat)bc;
38}