Mimetic Operators Library Enhanced
4.0
Loading...
Searching...
No Matches
gradient.h
Go to the documentation of this file.
1
#ifndef GRADIENT_H
2
#define GRADIENT_H
3
4
#include <cassert>
5
#include "
utils.h
"
6
7
class
Gradient
:
public
sp_mat
8
{
9
10
public
:
11
using
sp_mat::operator=;
12
13
// 1-D Constructor
14
Gradient
(u16 k, u32 m,
Real
dx);
15
// 2-D Constructor
16
Gradient
(u16 k, u32 m, u32 n,
Real
dx,
Real
dy);
17
// 3-D Constructor
18
Gradient
(u16 k, u32 m, u32 n, u32 o,
Real
dx,
Real
dy,
Real
dz);
19
// Returns weights
20
vec
getP
();
21
22
private
:
23
vec P;
24
};
25
26
#endif
// GRADIENT_H
Gradient
Definition
gradient.h:8
Gradient::getP
vec getP()
Definition
gradient.cpp:287
Gradient::Gradient
Gradient(u16 k, u32 m, Real dx)
Definition
gradient.cpp:4
utils.h
Real
double Real
Definition
utils.h:8
mole_C++
gradient.h
Generated by
1.10.0