Skip to content

Core SoA

Sam Reeve edited this page May 18, 2023 · 2 revisions

Overview

An SoA holds a subset of particle fields together in a logical collection that has the ability to be contiguous in memory.

Implementation

Cabana_SoA.hpp

Interface

template<int VectorLength, typename... Types>
struct SoA<MemberTypes<Types...>,VectorLength>;

Examples

Usage

  using T0 = float[3];
  using T1 = double;
  using member_types = Cabana::MemberTypes<T0,T1>;
  using soa_type = Cabana::SoA<vector_length,member_types>;

This is part of the Programming Guide series

Clone this wiki locally