AFF --- A container for numbers (array) by Friederich and Forbriger.
◆
size()
[4/4]
template<class T>
Tsize
aff::Strided::size
total number of mapped elements
calculate total size
Definition at line
140
of file
strided.cc
.
141
{
142
// could be done more elegant by inlining - but this will do it here
143
TSizeVec
size
(
Mlast
);
144
for
(
int
i=0; i<
Mmax_dimen
; i++) {
size
[i]-=(
Mfirst
[i]-1); }
145
return
(
inline_product
(
size
));
146
}
aff::Strided::Mlast
TIndexVec Mlast
Definition:
strided.h:288
aff::inline_product
T inline_product(const SimpleRigidArray< T, N > &array)
Product of all elements.
Definition:
simplearray.h:178
aff::Strided::Mmax_dimen
static const Tdim Mmax_dimen
instantiate static member (otherwise the linker won't find it)
Definition:
strided.h:123
aff::Strided::TSizeVec
SimpleRigidArray< Tsize, Mmax_dimen > TSizeVec
type of size and stride array (always positive)
Definition:
strided.h:126
aff::Strided::size
Tsize size() const
total number of mapped elements
Definition:
strided.cc:140
aff::Strided::Mfirst
TIndexVec Mfirst
Definition:
strided.h:287
aff
ConstArray
Generated on Mon Aug 21 2023 17:36:09 for AFF --- A container for numbers (array) by Friederich and Forbriger. by
1.8.14