Celeritas
0.5.0-56+6b053cd
|
Construct a generic grid. More...
#include <GenericGridBuilder.hh>
Public Types | |
Type aliases | |
template<class T > | |
using | Items = Collection< T, Ownership::value, MemSpace::host > |
using | Grid = GenericGridRecord |
using | SpanConstFlt = Span< float const > |
using | SpanConstDbl = Span< double const > |
Public Member Functions | |
GenericGridBuilder (Items< real_type > *reals) | |
Construct with pointers to data that will be modified. | |
Grid | operator() (SpanConstFlt grid, SpanConstFlt values) |
Add a grid of generic data with linear interpolation. | |
Grid | operator() (SpanConstDbl grid, SpanConstDbl values) |
Add a grid of generic data with linear interpolation. | |
Grid | operator() (ImportPhysicsVector const &) |
Add a grid from an imported physics vector. | |
template<class T > | |
auto | insert_impl (Span< T const > grid, Span< T const > values) -> Grid |
Add a grid from container references. | |
Construct a generic grid.
This uses a deduplicating inserter for real values to improve cacheing.