-
Notifications
You must be signed in to change notification settings - Fork 50
Core Tuple
Sam Reeve edited this page May 18, 2023
·
2 revisions
A Tuple
holds a subset of particle fields together in a logical collection that has the ability to be contiguous in memory.
template<typename... Types>
struct Tuple<MemberTypes<Types...> >
-
Types
: Define the datatypes to be stored in theTuple
viaCabana::MemberDataTypes
. The types defined inCabana::MemberDataTypes
can be any POD type who's size is known at compile time or any type that is trivial.
using T0 = float[3];
using T1 = double;
using DataTypes = Cabana::MemberTypes<T0,T1>;
using Tuple_t = Cabana::Tuple<DataTypes>;
This is part of the Programming Guide series
Cabana - A Co-Designed Library for Exascale Particle Simulations