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
7class Gradient : public sp_mat
8{
9
10public:
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
22private:
23 vec P;
24};
25
26#endif // GRADIENT_H
vec getP()
Definition gradient.cpp:287
Gradient(u16 k, u32 m, Real dx)
Definition gradient.cpp:4
double Real
Definition utils.h:8