HilbertOrder.hpp
Go to the documentation of this file.
1 
6 #ifndef HILBERTORDER_HPP
7 #define HILBERTORDER_HPP 1
8 #include <vector>
9 #include <stack>
10 #include <algorithm>
11 #include <cmath>
12 #include "geometry.hpp"
13 #include "../misc/universal_error.hpp"
14 
15 using std::vector;
16 using std::pair;
17 using std::stack;
18 using std::max;
19 using std::min;
20 
28 vector<int> HilbertOrder(vector<Vector2D> const& cor,int num,int innernum=0);
29 
30 #endif // HILBERTORDER_HPP
Geometrical calculations.
double max(vector< double > const &v)
returns the maximal term in a vector
Definition: utils.cpp:52
double min(vector< double > const &v)
Returns the minimal term in a vector.
Definition: utils.cpp:44
vector< int > HilbertOrder(vector< Vector2D > const &cor, int num, int innernum=0)
Returns the Hilber curve ordering.