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