|
NeoN
A framework for CFD software
|
Data structure that stores a segmented fields or a vector of vectors. More...
#include <segmentedVector.hpp>
Public Member Functions | |
| SegmentedVector (const Executor &exec, localIdx size, localIdx numSegments) | |
| Create a segmented vector with a given size and number of segments. | |
| SegmentedVector (const Vector< IndexType > &intervals) | |
| SegmentedVector (const Vector< ValueType > &values, const Vector< IndexType > &segments) | |
| Constructor to create a segmentedVector from values and the segments. | |
| const Executor & | exec () const |
| Get the executor associated with the segmented vector. | |
| localIdx | size () const |
| Get the size of the segmented vector. | |
| localIdx | numSegments () const |
| Get the number of segments in the segmented vector. | |
| SegmentedVector< ValueType, IndexType > | copyToExecutor (Executor exec) const override |
| SegmentedVectorView< ValueType, IndexType > | view () & |
| get a view of the segmented vector | |
| SegmentedVectorView< ValueType, IndexType > | view () &&=delete |
| std::pair< View< ValueType >, View< IndexType > > | views () & |
| get the combined value and range views of the segmented vector | |
| std::pair< View< ValueType >, View< IndexType > > | views () &&=delete |
| const Vector< ValueType > & | values () const |
| const Vector< IndexType > & | segments () const |
Public Member Functions inherited from NeoN::SupportsCopyTo< SegmentedVector< ValueType, IndexType > > | |
| virtual | ~SupportsCopyTo ()=default |
| SegmentedVector< ValueType, IndexType > | copyToHost () const |
Data structure that stores a segmented fields or a vector of vectors.
Definition at line 159 of file segmentedVector.hpp.
|
inline |
Create a segmented vector with a given size and number of segments.
| exec | Executor associated to the matrix |
| size | size of the matrix |
| numSegments | number of segments |
Definition at line 170 of file segmentedVector.hpp.
|
inline |
Definition at line 179 of file segmentedVector.hpp.
|
inline |
Constructor to create a segmentedVector from values and the segments.
| values | The values of the segmented vector. |
| segments | The segments of the segmented vector. |
Definition at line 193 of file segmentedVector.hpp.
|
inlineoverridevirtual |
Implements NeoN::SupportsCopyTo< SegmentedVector< ValueType, IndexType > >.
Definition at line 218 of file segmentedVector.hpp.
|
inline |
Get the executor associated with the segmented vector.
Definition at line 204 of file segmentedVector.hpp.
|
inline |
Get the number of segments in the segmented vector.
Definition at line 216 of file segmentedVector.hpp.
|
inline |
Definition at line 253 of file segmentedVector.hpp.
|
inline |
Get the size of the segmented vector.
Definition at line 210 of file segmentedVector.hpp.
|
inline |
Definition at line 251 of file segmentedVector.hpp.
|
inline |
get a view of the segmented vector
Definition at line 230 of file segmentedVector.hpp.
|
delete |
|
inline |
get the combined value and range views of the segmented vector
Definition at line 242 of file segmentedVector.hpp.
|
delete |