NeoN
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
segmentedVector.hpp File Reference
#include "NeoN/core/view.hpp"
#include "NeoN/core/primitives/label.hpp"
#include "NeoN/core/vector.hpp"

Go to the source code of this file.

Classes

class  NeoN::SegmentedVectorView< ValueType, IndexType >
 A class representing a segment of indices. More...
 
class  NeoN::SegmentedVector< ValueType, IndexType >
 Data structure that stores a segmented fields or a vector of vectors. More...
 

Namespaces

namespace  NeoN
 

Functions

template<typename IndexType >
IndexType NeoN::segmentsFromIntervals (const Vector< IndexType > &intervals, Vector< IndexType > &offsets)
 Compute segment offsets from an input field corresponding to lengths by computing a prefix sum.