-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProjection.h
More file actions
36 lines (27 loc) · 883 Bytes
/
Projection.h
File metadata and controls
36 lines (27 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// Created by simonepanzeri on 25/11/2021.
//
#ifndef DEV_FDAPDE_PROJECTION_H
#define DEV_FDAPDE_PROJECTION_H
#include "FdaPDE.h"
#include "Mesh.h"
template <UInt ORDER,UInt mydim, UInt ndim>
class projection{
public:
projection(const MeshHandler<ORDER,mydim,ndim>&, const std::vector<Point<ndim>>&);
std::vector<Point<ndim>> computeProjection();
};
template<UInt ORDER>
class projection<ORDER, 2, 3>{
private:
const MeshHandler<ORDER, 2, 3>& mesh_;
const std::vector<Point<3>>& deData_; // the points to be projected
const UInt num_points;
std::vector<UInt> computeNodePatch(UInt) const;
public:
projection(const MeshHandler<ORDER, 2, 3>& m, const std::vector<Point<3>>& d) : mesh_(m), deData_(d),
num_points(d.size()) {};
std::vector<Point<3>> computeProjection();
};
#include "Projection_imp.h"
#endif //DEV_FDAPDE_PROJECTION_H