MADNESS 0.10.1
funcdefaults.h
Go to the documentation of this file.
1/*
2 This file is part of MADNESS.
3
4 Copyright (C) 2007,2010 Oak Ridge National Laboratory
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 2 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, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
20 For more information please contact:
21
22 Robert J. Harrison
23 Oak Ridge National Laboratory
24 One Bethel Valley Road
25 P.O. Box 2008, MS-6367
26
27 email: harrisonrj@ornl.gov
28 tel: 865-241-3937
29 fax: 865-572-0680
30*/
31
32#ifndef MADNESS_MRA_FUNCDEFAULTS_H__INCLUDED
33#define MADNESS_MRA_FUNCDEFAULTS_H__INCLUDED
34
35
36/// \file funcdefaults.h
37/// \brief Provides FunctionDefaults and utilities for coordinate transformation
38/// \ingroup mrabcext
39
45#include <madness/mra/bc.h>
46#include <madness/mra/key.h>
47
48#include <optional>
49
50namespace madness {
51 template <typename T, std::size_t NDIM> class FunctionImpl;
52
53 /// The maximum wavelet order presently supported
54 static const int MAXK = 30;
55
56 /// The maximum depth of refinement possible
57 static const int MAXLEVEL = 8*sizeof(Translation)-2;
58
59 enum TreeState {
60 reconstructed, ///< s coeffs at the leaves only
61 compressed, ///< d coeffs in internal nodes, s and d coeffs at the root
62 nonstandard, ///< s and d coeffs in internal nodes
63 nonstandard_with_leaves, ///< like nonstandard, with s coeffs at the leaves
64 nonstandard_after_apply, ///< s and d coeffs, state after operator application
65 redundant, ///< s coeffs everywhere
66 redundant_after_merge, ///< s coeffs everywhere, must be summed up to yield the result
67 on_demand, ///< no coeffs anywhere, but a functor providing if necessary
69 };
70
71 template<std::size_t NDIM=1>
72 std::ostream& operator<<(std::ostream& os, const TreeState treestate) {
73 if (treestate==reconstructed) os << "reconstructed";
74 else if (treestate==compressed) os << "compressed";
75 else if (treestate==nonstandard) os << "nonstandard";
76 else if (treestate==nonstandard_with_leaves) os << "nonstandard_with_leaves";
77 else if (treestate==nonstandard_after_apply) os << "nonstandard_after_apply";
78 else if (treestate==redundant) os << "redundant";
79 else if (treestate==redundant_after_merge) os << "redundant_after_merge";
80 else if (treestate==on_demand) os << "on_demand";
81 else if (treestate==unknown) os << "unknown";
82 else {
83 MADNESS_EXCEPTION("unknown treestate",1);
84 }
85 return os;
86 }
87
88 /// FunctionDefaults holds default paramaters as static class members
89
90 /// Declared and initialized in mra.cc and/or funcimpl::initialize.
91 ///
92 /// Currently all functions of the same dimension share the same cell dimensions
93 /// since they are stored inside FunctionDefaults ... if you change the
94 /// cell dimensions *all* functions of that dimension are affected.
95 ///
96 /// N.B. Ultimately, we may need to make these defaults specific to each
97 /// world, as should be all global state.
98 /// \ingroup mra
99 template <std::size_t NDIM>
101 MADNESS_PRAGMA_CLANG(diagnostic push)
102 MADNESS_PRAGMA_CLANG(diagnostic ignored "-Wundefined-var-template")
103
104 private:
105 static int k; ///< Wavelet order
106 static double thresh; ///< Truncation threshold
107 static int initial_level; ///< Initial level for fine scale projection
108 static int special_level; ///< Minimum level for fine scale projection of special boxes
109 static int max_refine_level; ///< Level at which to stop refinement
110 static int truncate_mode; ///< Truncation method
111 static bool refine; ///< Whether to refine new functions
112 static bool autorefine; ///< Whether to autorefine in multiplication, etc.
113 static bool debug; ///< Controls output of debug info
114 static bool truncate_on_project; ///< If true initial projection inserts at n-1 not n
115 static bool apply_randomize; ///< If true use randomization for load balancing in apply integral operator
116 static bool project_randomize; ///< If true use randomization for load balancing in project/refine
117 static std::optional<BoundaryConditions<NDIM>> bc; ///< Default boundary conditions, not initialized by default and must be set explicitly before use
118 static Tensor<double> cell ; ///< cell[NDIM][2] Simulation cell, cell(0,0)=xlo, cell(0,1)=xhi, ...
119 static Tensor<double> cell_width;///< Width of simulation cell in each dimension
120 static Tensor<double> rcell_width; ///< Reciprocal of width
121 static double cell_volume; ///< Volume of simulation cell
122 static double cell_min_width; ///< Size of smallest dimension
123 static TensorType tt; ///< structure of the tensor in FunctionNode
124 static std::shared_ptr< WorldDCPmapInterface< Key<NDIM> > > pmap; ///< Default mapping of keys to processes
125
127 if (NDIM) {
129 cell(_, 1) = 1.0;
130 return cell;
131 } else
132 return {};
133 }
134
136 if (NDIM) {
138 cell(_) = 1.0;
139 return cell;
140 } else
141 return {};
142 }
143
144 static void recompute_cell_info() {
145 MADNESS_ASSERT(cell.dim(0)==NDIM && cell.dim(1)==2 && cell.ndim()==2);
146 cell_width = cell(_,1)-cell(_,0);
150 for (std::size_t i=0; i<NDIM; ++i) rcell_width(i) = 1.0/rcell_width(i);
151 }
152
153 public:
154
155
156 /// Used to set defaults to k=7, thresh=1-5, for a unit cube [0,1].
157 /// @warning does not reset the boundary conditions if they are already set
158 static void set_defaults(World& world);
159
160 static void print();
161
162 /// Returns the default wavelet order
163 static int get_k() {
164 return k;
165 }
166
167 /// Sets the default wavelet order
168
169 /// Existing functions are unaffacted.
170 static void set_k(int value) {
171 k=value;
172 MADNESS_ASSERT(k>0 && k<=MAXK);
173 }
174
175 /// Returns the default threshold
176 static const double& get_thresh() {
177 return thresh;
178 }
179
180 /// Sets the default threshold
181
182 /// Existing functions are unaffected
183 static void set_thresh(double value) {
184 thresh=value;
185 }
186
187 /// Returns the default initial projection level
188 static int get_initial_level() {
189 return initial_level;
190 }
191
192 /// Returns the default projection level for special boxes
193 static int get_special_level() {
194 return special_level;
195 }
196
197 /// Sets the default initial projection level
198
199 /// Existing functions are unaffected
200 static void set_initial_level(int value) {
201 initial_level=value;
202 MADNESS_ASSERT(value>0 && value<MAXLEVEL);
203 }
204
205 /// Existing functions are unaffected
206 static void set_special_level(int value) {
207 special_level=value;
208 MADNESS_ASSERT(value>=0 && value<MAXLEVEL);
210 }
211
212 /// Gets the default maximum adaptive refinement level
213 static int get_max_refine_level() {
214 return max_refine_level;
215 }
216
217 /// Sets the default maximum adaptive refinement level
218
219 /// Existing functions are unaffected
226
227 /// Gets the default truncation mode
228 static int get_truncate_mode() {
229 return truncate_mode;
230 }
231
232 /// Sets the default truncation mode
233
234 /// Existing functions are unaffected
235 static void set_truncate_mode(int value) {
236 truncate_mode=value;
237 MADNESS_ASSERT(value>=0 && value<4);
238 }
239
240 /// Gets the default adaptive refinement flag
241 static bool get_refine() {
242 return refine;
243 }
244
245 /// Sets the default adaptive refinement flag
246
247 /// Existing functions are unaffected
248 static void set_refine(bool value) {
249 refine=value;
250 }
251
252 /// Gets the default adaptive autorefinement flag
253 static bool get_autorefine() {
254 return autorefine;
255 }
256
257 /// Sets the default adaptive autorefinement flag
258
259 /// Existing functions are unaffected
260 static void set_autorefine(bool value) {
261 autorefine=value;
262 }
263
264 /// Gets the default debug flag (is this used anymore?)
265 static bool get_debug() {
266 return debug;
267 }
268
269 /// Sets the default debug flag (is this used anymore?)
270
271 /// Not sure if this does anything useful
272 static void set_debug(bool value) {
273 debug=value;
274 }
275
276 /// Gets the default truncate on project flag
278 return truncate_on_project;
279 }
280
281 /// Sets the default truncate on project flag
282
283 /// Existing functions are unaffected
284 static void set_truncate_on_project(bool value) {
286 }
287
288 /// Gets the random load balancing for integral operators flag
289 static bool get_apply_randomize() {
290 return apply_randomize;
291 }
292
293 /// Sets the random load balancing for integral operators flag
294 static void set_apply_randomize(bool value) {
295 apply_randomize=value;
296 }
297
298
299 /// Gets the random load balancing for projection flag
300 static bool get_project_randomize() {
301 return project_randomize;
302 }
303
304 /// Sets the random load balancing for projection flag
305 static void set_project_randomize(bool value) {
306 project_randomize=value;
307 }
308
309 /// Returns the default boundary conditions
311 if (!bc.has_value()) {
312 const std::string msg = "FunctionDefaults<" + std::to_string(NDIM) + ">::get_bc: must initialize boundary conditions by set_bc or set_defaults or startup";
313 MADNESS_EXCEPTION(msg.c_str(), 1);
314 }
315 return bc.value();
316 }
317
318 /// Sets the default boundary conditions
319 static void set_bc(const BoundaryConditions<NDIM>& value) {
320 bc=value;
321 }
322
323 /// Returns the default tensor type
325 return tt;
326 }
327
328 /// Sets the default tensor type
329 static void set_tensor_type(const TensorType& t) {
330#if HAVE_GENTENSOR
331 tt=t;
332#else
333 tt=TT_FULL;
334#endif
335 }
336
337 /// adapt the special level to resolve the smallest length scale
338 static int set_length_scale(const double lo,const size_t k=get_k()) {
339 const double dk = (double) k;
341 double lo_sim=lo/Lmax; // lo in simulation coordinates;
342 const int special_level=Level(-log2(lo_sim*dk));
343 return special_level;
344 }
345
346 /// Gets the user cell for the simulation
347 static const Tensor<double>& get_cell() {
348 return cell;
349 }
350
351 /// Gets the user cell for the simulation
352
353 /// Existing functions are probably rendered useless
354 static void set_cell(const Tensor<double>& value) {
355 cell=copy(value);
357 }
358
359 /// Sets the user cell to be cubic with each dimension having range \c [lo,hi]
360
361 /// Existing functions are probably rendered useless
362 static void set_cubic_cell(double lo, double hi) {
363 cell(_,0)=lo;
364 cell(_,1)=hi;
366 }
367
368 /// Returns the width of each user cell dimension
370 return cell_width;
371 }
372
373 /// Returns the reciprocal of the width of each user cell dimension
375 return rcell_width;
376 }
377
378 /// Returns the minimum width of any user cell dimension
379 static double get_cell_min_width() {
380 return cell_min_width;
381 }
382
383 /// Returns the volume of the user cell
384 static double get_cell_volume() {
385 return cell_volume;
386 }
387
388 /// Returns the default process map
389 static std::shared_ptr< WorldDCPmapInterface< Key<NDIM> > >& get_pmap() {
390 if (pmap)
391 return pmap;
392 else { // try to initialize to default, if not yet
393 if (initialized()) {
395 return pmap;
396 }
397 else
398 return pmap; // null ptr if uninitialized
399 }
400 }
401
402 /// Sets the default process map (does \em not redistribute existing functions)
403
404 /// Existing functions are probably rendered useless
405 static void set_pmap(const std::shared_ptr< WorldDCPmapInterface< Key<NDIM> > >& value) {
406 pmap = value;
407 }
408
409 /// Sets the default process map
410 static void set_default_pmap(World& world);
411
412
413 /// Sets the default process map and redistributes all functions using the old map
414 static void redistribute(World& world, const std::shared_ptr< WorldDCPmapInterface< Key<NDIM> > >& newpmap) {
415 pmap->redistribute(world,newpmap);
416 pmap = newpmap;
417 }
418
419 MADNESS_PRAGMA_CLANG(diagnostic pop)
420
421 };
422
423 /// Convert user coords (cell[][]) to simulation coords ([0,1]^ndim)
424 template <std::size_t NDIM>
425 static inline void user_to_sim(const Vector<double,NDIM>& xuser, Vector<double,NDIM>& xsim) {
426 for (std::size_t i=0; i<NDIM; ++i)
428 }
429
430 /// Returns the box at level n that contains the given point in simulation coordinates
431 /// @param[in] pt point in simulation coordinates
432 /// @param[in] n the level of the box
433 template <typename T, std::size_t NDIM>
434 static inline Key<NDIM> simpt2key(const Vector<T,NDIM>& pt, Level n){
436 double twon = std::pow(2.0, double(n));
437 for (std::size_t i=0; i<NDIM; ++i) {
438 l[i] = Translation(twon*pt[i]);
439 }
440 return Key<NDIM>(n,l);
441 }
442
443 /// Convert simulation coords ([0,1]^ndim) to user coords (FunctionDefaults<NDIM>::get_cell())
444 template <std::size_t NDIM>
445 static void sim_to_user(const Vector<double,NDIM>& xsim, Vector<double,NDIM>& xuser) {
446 for (std::size_t i=0; i<NDIM; ++i)
448 }
449
450
451}
452#endif // MADNESS_MRA_FUNCDEFAULTS_H__INCLUDED
This header should include pretty much everything needed for the parallel runtime.
Provides BoundaryConditions.
long dim(int i) const
Returns the size of dimension i.
Definition basetensor.h:147
long ndim() const
Returns the number of dimensions in the tensor.
Definition basetensor.h:144
This class is used to specify boundary conditions for all operators.
Definition bc.h:72
FunctionDefaults holds default paramaters as static class members.
Definition funcdefaults.h:100
static int get_special_level()
Returns the default projection level for special boxes.
Definition funcdefaults.h:193
static Tensor< double > make_default_cell_width()
Definition funcdefaults.h:135
static void set_tensor_type(const TensorType &t)
Sets the default tensor type.
Definition funcdefaults.h:329
static int get_k()
Returns the default wavelet order.
Definition funcdefaults.h:163
static void set_apply_randomize(bool value)
Sets the random load balancing for integral operators flag.
Definition funcdefaults.h:294
static bool get_project_randomize()
Gets the random load balancing for projection flag.
Definition funcdefaults.h:300
static bool truncate_on_project
If true initial projection inserts at n-1 not n.
Definition funcdefaults.h:114
static int get_truncate_mode()
Gets the default truncation mode.
Definition funcdefaults.h:228
static void set_truncate_mode(int value)
Sets the default truncation mode.
Definition funcdefaults.h:235
static bool apply_randomize
If true use randomization for load balancing in apply integral operator.
Definition funcdefaults.h:115
static void set_truncate_on_project(bool value)
Sets the default truncate on project flag.
Definition funcdefaults.h:284
static void set_thresh(double value)
Sets the default threshold.
Definition funcdefaults.h:183
static double cell_volume
Volume of simulation cell.
Definition funcdefaults.h:121
static void set_special_level(int value)
Existing functions are unaffected.
Definition funcdefaults.h:206
static void set_k(int value)
Sets the default wavelet order.
Definition funcdefaults.h:170
static void redistribute(World &world, const std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > &newpmap)
Sets the default process map and redistributes all functions using the old map.
Definition funcdefaults.h:414
static const double & get_thresh()
Returns the default threshold.
Definition funcdefaults.h:176
static int k
Wavelet order.
Definition funcdefaults.h:105
static double get_cell_volume()
Returns the volume of the user cell.
Definition funcdefaults.h:384
static int get_max_refine_level()
Gets the default maximum adaptive refinement level.
Definition funcdefaults.h:213
static bool get_debug()
Gets the default debug flag (is this used anymore?)
Definition funcdefaults.h:265
static void set_debug(bool value)
Sets the default debug flag (is this used anymore?)
Definition funcdefaults.h:272
static int truncate_mode
Truncation method.
Definition funcdefaults.h:110
static void set_default_pmap(World &world)
Sets the default process map.
Definition mraimpl.h:3574
static bool get_refine()
Gets the default adaptive refinement flag.
Definition funcdefaults.h:241
static Tensor< double > cell_width
Width of simulation cell in each dimension.
Definition funcdefaults.h:119
static void set_autorefine(bool value)
Sets the default adaptive autorefinement flag.
Definition funcdefaults.h:260
static double thresh
Truncation threshold.
Definition funcdefaults.h:106
static void set_bc(const BoundaryConditions< NDIM > &value)
Sets the default boundary conditions.
Definition funcdefaults.h:319
static void set_project_randomize(bool value)
Sets the random load balancing for projection flag.
Definition funcdefaults.h:305
static bool get_autorefine()
Gets the default adaptive autorefinement flag.
Definition funcdefaults.h:253
static bool debug
Controls output of debug info.
Definition funcdefaults.h:113
static int special_level
Minimum level for fine scale projection of special boxes.
Definition funcdefaults.h:108
static double cell_min_width
Size of smallest dimension.
Definition funcdefaults.h:122
static std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > pmap
Default mapping of keys to processes.
Definition funcdefaults.h:124
static TensorType get_tensor_type()
Returns the default tensor type.
Definition funcdefaults.h:324
static const Tensor< double > & get_cell_width()
Returns the width of each user cell dimension.
Definition funcdefaults.h:369
static std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > & get_pmap()
Returns the default process map.
Definition funcdefaults.h:389
static void set_initial_level(int value)
Sets the default initial projection level.
Definition funcdefaults.h:200
static void set_cubic_cell(double lo, double hi)
Sets the user cell to be cubic with each dimension having range [lo,hi].
Definition funcdefaults.h:362
static void set_refine(bool value)
Sets the default adaptive refinement flag.
Definition funcdefaults.h:248
static void set_max_refine_level(int value)
Sets the default maximum adaptive refinement level.
Definition funcdefaults.h:220
static const BoundaryConditions< NDIM > & get_bc()
Returns the default boundary conditions.
Definition funcdefaults.h:310
static Tensor< double > cell
cell[NDIM][2] Simulation cell, cell(0,0)=xlo, cell(0,1)=xhi, ...
Definition funcdefaults.h:118
static void set_cell(const Tensor< double > &value)
Gets the user cell for the simulation.
Definition funcdefaults.h:354
static void set_pmap(const std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > &value)
Sets the default process map (does not redistribute existing functions)
Definition funcdefaults.h:405
static int initial_level
Initial level for fine scale projection.
Definition funcdefaults.h:107
static bool autorefine
Whether to autorefine in multiplication, etc.
Definition funcdefaults.h:112
static const Tensor< double > & get_rcell_width()
Returns the reciprocal of the width of each user cell dimension.
Definition funcdefaults.h:374
static Tensor< double > make_default_cell()
Definition funcdefaults.h:126
static std::optional< BoundaryConditions< NDIM > > bc
Default boundary conditions, not initialized by default and must be set explicitly before use.
Definition funcdefaults.h:117
static int set_length_scale(const double lo, const size_t k=get_k())
adapt the special level to resolve the smallest length scale
Definition funcdefaults.h:338
static void print()
Definition mraimpl.h:3582
static Tensor< double > rcell_width
Reciprocal of width.
Definition funcdefaults.h:120
static bool get_apply_randomize()
Gets the random load balancing for integral operators flag.
Definition funcdefaults.h:289
static double get_cell_min_width()
Returns the minimum width of any user cell dimension.
Definition funcdefaults.h:379
static void recompute_cell_info()
Definition funcdefaults.h:144
static bool project_randomize
If true use randomization for load balancing in project/refine.
Definition funcdefaults.h:116
static const Tensor< double > & get_cell()
Gets the user cell for the simulation.
Definition funcdefaults.h:347
static void set_defaults(World &world)
Definition mraimpl.h:3553
static int max_refine_level
Level at which to stop refinement.
Definition funcdefaults.h:109
static TensorType tt
structure of the tensor in FunctionNode
Definition funcdefaults.h:123
static int get_initial_level()
Returns the default initial projection level.
Definition funcdefaults.h:188
static bool get_truncate_on_project()
Gets the default truncate on project flag.
Definition funcdefaults.h:277
static bool refine
Whether to refine new functions.
Definition funcdefaults.h:111
Key is the index for a node of the 2^NDIM-tree.
Definition key.h:68
A tensor is a multidimensional array.
Definition tensor.h:317
T max(long *ind=0) const
Return the maximum value (and if ind is non-null, its index) in the Tensor.
Definition tensor.h:1703
T product() const
Return the product of all elements of the tensor.
Definition tensor.h:1676
T min(long *ind=0) const
Return the minimum value (and if ind is non-null, its index) in the Tensor.
Definition tensor.h:1683
A simple, fixed dimension vector.
Definition vector.h:64
Interface to be provided by any process map.
Definition worlddc.h:82
A parallel world class.
Definition world.h:132
static World & get_default()
Default World object accessor.
Definition world.h:260
static double lo
Definition dirac-hatom.cc:23
Multidimension Key for MRA tree and associated iterators.
#define MADNESS_PRAGMA_CLANG(x)
Definition madness_config.h:200
#define MADNESS_EXCEPTION(msg, value)
Macro for throwing a MADNESS exception.
Definition madness_exception.h:119
#define MADNESS_ASSERT(condition)
Assert a condition that should be free of side-effects since in release builds this might be a no-op.
Definition madness_exception.h:134
Namespace for all elements and tools of MADNESS.
Definition DFParameters.h:10
std::ostream & operator<<(std::ostream &os, const particle< PDIM > &p)
Definition lowrankfunction.h:397
static Key< NDIM > simpt2key(const Vector< T, NDIM > &pt, Level n)
Definition funcdefaults.h:434
TreeState
Definition funcdefaults.h:59
@ nonstandard_after_apply
s and d coeffs, state after operator application
Definition funcdefaults.h:64
@ on_demand
no coeffs anywhere, but a functor providing if necessary
Definition funcdefaults.h:67
@ redundant_after_merge
s coeffs everywhere, must be summed up to yield the result
Definition funcdefaults.h:66
@ reconstructed
s coeffs at the leaves only
Definition funcdefaults.h:60
@ nonstandard
s and d coeffs in internal nodes
Definition funcdefaults.h:62
@ unknown
Definition funcdefaults.h:68
@ compressed
d coeffs in internal nodes, s and d coeffs at the root
Definition funcdefaults.h:61
@ redundant
s coeffs everywhere
Definition funcdefaults.h:65
@ nonstandard_with_leaves
like nonstandard, with s coeffs at the leaves
Definition funcdefaults.h:63
static void user_to_sim(const Vector< double, NDIM > &xuser, Vector< double, NDIM > &xsim)
Convert user coords (cell[][]) to simulation coords ([0,1]^ndim)
Definition funcdefaults.h:425
int64_t Translation
Definition key.h:56
static void sim_to_user(const Vector< double, NDIM > &xsim, Vector< double, NDIM > &xuser)
Convert simulation coords ([0,1]^ndim) to user coords (FunctionDefaults<NDIM>::get_cell())
Definition funcdefaults.h:445
static const int MAXLEVEL
The maximum depth of refinement possible.
Definition funcdefaults.h:57
static const Slice _(0,-1, 1)
int Level
Definition key.h:57
bool initialized()
Check if the MADNESS runtime has been initialized (and not subsequently finalized).
Definition world.cc:74
static double pop(std::vector< double > &v)
Definition SCF.cc:113
TensorType
low rank representations of tensors (see gentensor.h)
Definition gentensor.h:120
@ TT_FULL
Definition gentensor.h:120
Function< T, NDIM > copy(const Function< T, NDIM > &f, const std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > &pmap, bool fence=true)
Create a new copy of the function with different distribution and optional fence.
Definition mra.h:2037
static const int MAXK
The maximum wavelet order presently supported.
Definition funcdefaults.h:54
Defines and implements most of Tensor.
constexpr std::size_t NDIM
Definition testgconv.cc:54
Implement the madness:Vector class, an extension of std::array that supports some mathematical operat...
Implements WorldContainer.