A functor-style wrapper for a spatial quantity (typically potential, electron density or hole density). Typically evaluated on each vertex only.
More...
template<typename DeviceType, typename ElementTagT, typename ValueType = double>
class viennashe::util::spatial_quantity_wrapper< DeviceType, ElementTagT, ValueType >
A functor-style wrapper for a spatial quantity (typically potential, electron density or hole density). Typically evaluated on each vertex only.
- Template Parameters
-
DeviceType | Type of the underlying device |
dim | Topological dimension of the elements on which the quantity is defined (0: vertices) |
ValueType | Value type of the quantity (usually double or bool) |
Definition at line 272 of file misc.hpp.
template<typename DeviceType , typename ElementTagT , typename ValueType = double>
template<typename VectorType , typename IndexKeyType , typename BoundaryValueAccessor >
viennashe::util::spatial_quantity_wrapper< DeviceType, ElementTagT, ValueType >::spatial_quantity_wrapper |
( |
DeviceType const & |
device, |
|
|
VectorType const & |
quantity_values, |
|
|
IndexKeyType const & |
index_array, |
|
|
BoundaryValueAccessor const & |
bnd_accessor |
|
) |
| |
|
inline |
Copy over all values from the accessors so that this object can be easily passed around.
Definition at line 284 of file misc.hpp.