AFF --- A container for numbers (array) by Friederich and Forbriger.
◆
ConstCArray()
template<class T >
aff::ConstCArray
< T >::
ConstCArray
(
const
Tarray
&
array
)
inline
construct from shape and representation
Definition at line
143
of file
Carray.h
.
144
:
Mrepresentation
(array.representation())
145
{
146
Tshape
shape=array.shape();
147
// index range is zero based
148
shape.
setfirst
(
typename
Tshape::TIndexVec
(0));
149
// offset to first element in represented memory
150
Moffset
=shape.first_offset();
151
// strides
152
Mstride
=shape.stride();
153
// sizes
154
Msize
=shape.last();
155
for
(
unsigned
i=0; i<
Msize
.
size
(); ++i)
156
{
157
++
Msize
[i];
158
}
159
}
aff::Strided::setfirst
Strided & setfirst(const Tdim &i, const Tsubscript &index)
setfirst
Definition:
strided.cc:279
aff::SimpleRigidArray::size
Tsize size() const
size of array
Definition:
simplearray.h:164
aff::ConstCArray::Mrepresentation
Trepresentation Mrepresentation
representation member
Definition:
Carray.h:210
aff::ConstCArray::Moffset
TSizeVec::Tvalue Moffset
offset to first index
Definition:
Carray.h:216
aff::ConstCArray::Msize
TSizeVec Msize
sizes of dimensions
Definition:
Carray.h:212
aff::ConstCArray::Tshape
Tarray::Tshape Tshape
Type of shape.
Definition:
Carray.h:111
aff::ConstCArray::Mstride
TSizeVec Mstride
strides of dimensions
Definition:
Carray.h:214
aff::Strided::TIndexVec
SimpleRigidArray< Tsubscript, Mmax_dimen > TIndexVec
type of limit arrays (any sign)
Definition:
strided.h:128
aff
ConstCArray
Generated on Mon Aug 21 2023 17:36:09 for AFF --- A container for numbers (array) by Friederich and Forbriger. by
1.8.14