NiHu  2.0
space.hpp
Go to the documentation of this file.
1 // This file is a part of NiHu, a C++ BEM template library.
2 //
3 // Copyright (C) 2012-2019 Peter Fiala <fiala@hit.bme.hu>
4 // Copyright (C) 2012-2019 Peter Rucz <rucz@hit.bme.hu>
5 //
6 // This program is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation, either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
22 
23 #ifndef SPACE_HPP_INCLUDED
24 #define SPACE_HPP_INCLUDED
25 
26 #include <Eigen/Dense>
27 
28 namespace NiHu
29 {
30 
35 template <class Scalar, unsigned Dimension>
36 struct space
37 {
39  typedef space type;
40 
42  typedef Scalar scalar_t;
43 
45  enum {
47  dimension = Dimension
48  };
49 
51  typedef Eigen::Matrix<scalar_t, Dimension, 1> location_t;
52 };
53 
55 template <class Scalar = double>
57 
59 template <class Scalar = double>
61 
63 template <class Scalar = double>
65 
66 } // end of namespace NiHu
67 
68 #endif /* SPACE_HPP_INCLUDED */
69 
NiHu::space::location_t
Eigen::Matrix< scalar_t, Dimension, 1 > location_t
the location type
Definition: space.hpp:51
NiHu::space
class representing a coordinate space with a scalar and a dimension
Definition: space.hpp:36
NiHu::space::type
space type
self-returning
Definition: space.hpp:39
NiHu::space::scalar_t
Scalar scalar_t
template parameter as nested type
Definition: space.hpp:42
NiHu::space::dimension
@ dimension
template parameter as nested value
Definition: space.hpp:47