Go to the documentation of this file.
51 const Type& sub = lst[lstI];
55 result[index++] = sub[subI];
63 template<
class DataType,
class IndexType,
class AddOp>
74 <<
"Input data and indices lists not equal size." <<
endl
75 <<
"data size:" << values.
size()
76 <<
" indices:" << indices.
size()
88 IndexType result(
sum);
96 const IndexType& sub = indices[lstI];
100 result[index++] = aop(sub[subI], offset);
102 offset += values[lstI].
size();
#define forAll(list, i)
Loop across all elements in list.
static T flatten(const List< T >)
Flatten: appends all elements of list into one single list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManip< error > abort(error &err)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static IndexType offset(const List< DataType > &values, const List< IndexType > &indices, AddOp aop)
Flatten and offset 'Gathered' indices (into value) so they.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
void size(const label)
Override size to be inconsistent with allocated storage.