|
OpenGM
2.3.x
Discrete Graphical Model Library
|
Array-Interface to an interval of memory. More...
#include <marray.hxx>
Inheritance diagram for marray::View< T, isConst, A >:
Collaboration diagram for marray::View< T, isConst, A >:Public Types | |
| typedef T | value_type |
| typedef T | ValueType |
| typedef marray_detail::IfBool< isConst, const T *, T * >::type | pointer |
| typedef const T * | const_pointer |
| typedef marray_detail::IfBool< isConst, const T &, T & >::type | reference |
| typedef const T & | const_reference |
| typedef Iterator< T, isConst, A > | iterator |
| typedef Iterator< T, true, A > | const_iterator |
| typedef std::reverse_iterator< iterator > | reverse_iterator |
| typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
| typedef ViewExpression< View< T, isConst, A >, T > | base |
| typedef A::template rebind< value_type >::other | allocator_type |
Public Types inherited from marray::ViewExpression< View< T, isConst, A >, T > | |
| typedef View< T, isConst, A > | expression_type |
| typedef T | value_type |
Public Member Functions | |
| View (const allocator_type &=allocator_type()) | |
| Empty constructor. More... | |
| View (pointer, const allocator_type &=allocator_type()) | |
| Construct View from a scalar. More... | |
| View (const View< T, false, A > &) | |
| Construct View from a View on mutable data. More... | |
| template<class ShapeIterator > | |
| View (ShapeIterator, ShapeIterator, pointer, const CoordinateOrder &=defaultOrder, const CoordinateOrder &=defaultOrder, const allocator_type &=allocator_type()) | |
| Construct unstrided View. More... | |
| template<class ShapeIterator , class StrideIterator > | |
| View (ShapeIterator, ShapeIterator, StrideIterator, pointer, const CoordinateOrder &, const allocator_type &=allocator_type()) | |
| Construct strided View. More... | |
| View< T, isConst, A > & | operator= (const T &) |
| Assignment. More... | |
| View< T, isConst, A > & | operator= (const View< T, true, A > &) |
| Assignment. More... | |
| View< T, isConst, A > & | operator= (const View< T, false, A > &) |
| Assignment. More... | |
| template<class TLocal , bool isConstLocal, class ALocal > | |
| View< T, isConst, A > & | operator= (const View< TLocal, isConstLocal, ALocal > &) |
| Assignment. More... | |
| template<class E , class Te > | |
| View< T, isConst, A > & | operator= (const ViewExpression< E, Te > &) |
| void | assign (const allocator_type &=allocator_type()) |
| Clear View. More... | |
| template<class ShapeIterator > | |
| void | assign (ShapeIterator, ShapeIterator, pointer, const CoordinateOrder &=defaultOrder, const CoordinateOrder &=defaultOrder, const allocator_type &=allocator_type()) |
| Initialize unstrided View. More... | |
| template<class ShapeIterator , class StrideIterator > | |
| void | assign (ShapeIterator, ShapeIterator, StrideIterator, pointer, const CoordinateOrder &, const allocator_type &=allocator_type()) |
| Initialize strided View. More... | |
| const size_t | dimension () const |
| Get the dimension. More... | |
| const size_t | size () const |
| Get the number of data items. More... | |
| const size_t | shape (const size_t) const |
| Get the shape in one dimension. More... | |
| const size_t * | shapeBegin () const |
| Get a constant iterator to the beginning of the shape vector. More... | |
| const size_t * | shapeEnd () const |
| Get a constant iterator to the end of the shape vector. More... | |
| const size_t | strides (const size_t) const |
| Get the strides in one dimension. More... | |
| const size_t * | stridesBegin () const |
| Get a constant iterator to the beginning of the strides vector. More... | |
| const size_t * | stridesEnd () const |
| Get a constant iterator to the end of the strides vector. More... | |
| const CoordinateOrder & | coordinateOrder () const |
| Get the coordinate order used for scalar indexing and iterators. More... | |
| const bool | isSimple () const |
| Determine whether the shape strides equal the strides of the View. More... | |
| template<class TLocal , bool isConstLocal, class ALocal > | |
| bool | overlaps (const View< TLocal, isConstLocal, ALocal > &) const |
| Check whether two Views overlap. More... | |
| template<class U > | |
| reference | operator() (U) |
| Reference data. More... | |
| template<class U > | |
| reference | operator() (U) const |
| Reference data. More... | |
| reference | operator() (const size_t, const size_t) |
| Reference data in a 2-dimensional View by coordinates. More... | |
| reference | operator() (const size_t, const size_t) const |
| Reference data in a 2-dimensional View by coordinates. More... | |
| reference | operator() (const size_t, const size_t, const size_t) |
| Reference data in a 3-dimensional View by coordinates. More... | |
| reference | operator() (const size_t, const size_t, const size_t) const |
| Reference data in a 3-dimensional View by coordinates. More... | |
| reference | operator() (const size_t, const size_t, const size_t, const size_t) |
| Reference data in a 4-dimensional View by coordinates. More... | |
| reference | operator() (const size_t, const size_t, const size_t, const size_t) const |
| Reference data in a 4-dimensional View by coordinates. More... | |
| reference | operator() (const size_t, const size_t, const size_t, const size_t, const size_t) |
| Reference data in a 5-dimensional View by coordinates. More... | |
| reference | operator() (const size_t, const size_t, const size_t, const size_t, const size_t) const |
| Reference data in a 5-dimensional View by coordinates. More... | |
| reference | operator() (const size_t, const size_t, const size_t, const size_t, const size_t, const size_t, const size_t, const size_t, const size_t, const size_t) |
| Reference data in a 10-dimensional View by coordinates. More... | |
| reference | operator() (const size_t, const size_t, const size_t, const size_t, const size_t, const size_t, const size_t, const size_t, const size_t, const size_t) const |
| Reference data in a 10-dimensional View by coordinates. More... | |
| template<class BaseIterator , class ShapeIterator > | |
| void | view (BaseIterator, ShapeIterator, View< T, isConst, A > &) const |
| Get a sub-view with the same coordinate order. More... | |
| template<class BaseIterator , class ShapeIterator > | |
| void | view (BaseIterator, ShapeIterator, const CoordinateOrder &, View< T, isConst, A > &) const |
| Get a sub-view. More... | |
| template<class BaseIterator , class ShapeIterator > | |
| View< T, isConst, A > | view (BaseIterator, ShapeIterator) const |
| Get a sub-view with the same coordinate order. More... | |
| template<class BaseIterator , class ShapeIterator > | |
| View< T, isConst, A > | view (BaseIterator, ShapeIterator, const CoordinateOrder &) const |
| Get a sub-view. More... | |
| template<class BaseIterator , class ShapeIterator > | |
| void | constView (BaseIterator, ShapeIterator, View< T, true, A > &) const |
| Get a sub-view to constant data with the same coordinate order. More... | |
| template<class BaseIterator , class ShapeIterator > | |
| void | constView (BaseIterator, ShapeIterator, const CoordinateOrder &, View< T, true, A > &) const |
| Get a sub-view to constant data. More... | |
| template<class BaseIterator , class ShapeIterator > | |
| View< T, true, A > | constView (BaseIterator, ShapeIterator) const |
| Get a sub-view to constant data with the same coordinate order. More... | |
| template<class BaseIterator , class ShapeIterator > | |
| View< T, true, A > | constView (BaseIterator, ShapeIterator, const CoordinateOrder &) const |
| Get a sub-view to constant data. More... | |
| iterator | begin () |
| Get an iterator to the beginning. More... | |
| iterator | end () |
| Get the end-iterator. More... | |
| const_iterator | begin () const |
| Get an iterator to the beginning. More... | |
| const_iterator | end () const |
| Get the end-iterator. More... | |
| reverse_iterator | rbegin () |
| Get a reserve iterator to the beginning. More... | |
| reverse_iterator | rend () |
| Get the reverse end-iterator. More... | |
| const_reverse_iterator | rbegin () const |
| Get a reserve iterator to the beginning. More... | |
| const_reverse_iterator | rend () const |
| Get the reverse end-iterator. More... | |
| template<class ShapeIterator > | |
| void | reshape (ShapeIterator, ShapeIterator) |
| Reshape the View. More... | |
| template<class CoordinateIterator > | |
| void | permute (CoordinateIterator) |
| Permute dimensions. More... | |
| void | transpose (const size_t, const size_t) |
| Exchange two dimensions. More... | |
| void | transpose () |
| Reverse dimensions. More... | |
| void | shift (const int) |
| Cycle shift dimensions. More... | |
| void | squeeze () |
| Remove singleton dimensions by setting their coordinates to zero. More... | |
| template<class ShapeIterator > | |
| View< T, isConst, A > | reshapedView (ShapeIterator, ShapeIterator) const |
| Get a reshaped View. More... | |
| template<class CoordinateIterator > | |
| View< T, isConst, A > | permutedView (CoordinateIterator) const |
| Get a View with permuted dimensions. More... | |
| View< T, isConst, A > | transposedView (const size_t, const size_t) const |
| Get a View with two dimensions exchanged. More... | |
| View< T, isConst, A > | transposedView () const |
| Get a View with dimensions reversed. More... | |
| View< T, isConst, A > | shiftedView (const int) const |
| Get a View which dimensions cycle shifted. More... | |
| View< T, isConst, A > | boundView (const size_t, const size_t=0) const |
| Get a View where one coordinate is bound to a value. More... | |
| View< T, isConst, A > | squeezedView () const |
| Get a View where all singleton dimensions have been removed by setting their coordinates to zero. More... | |
| template<class CoordinateIterator > | |
| void | coordinatesToIndex (CoordinateIterator, size_t &) const |
| Compute the index that corresponds to a sequence of coordinates. More... | |
| template<class CoordinateIterator > | |
| void | coordinatesToOffset (CoordinateIterator, size_t &) const |
| Compute the offset that corresponds to a sequence of coordinates. More... | |
| template<class CoordinateIterator > | |
| void | indexToCoordinates (size_t, CoordinateIterator) const |
| Compute the coordinate sequence that corresponds to an index. More... | |
| void | indexToOffset (size_t, size_t &) const |
| Compute the offset that corresponds to an index. More... | |
| std::string | asString (const StringStyle &=MatrixStyle) const |
| Output as string. More... | |
Public Member Functions inherited from marray::ViewExpression< View< T, isConst, A >, T > | |
| const size_t | dimension () const |
| const size_t | size () const |
| const size_t | shape (const size_t j) const |
| const size_t * | shapeBegin () const |
| const size_t * | shapeEnd () const |
| bool | overlaps (const View< Tv, isConst, A > &v) const |
| const CoordinateOrder & | coordinateOrder () const |
| const bool | isSimple () const |
| const T & | operator() (Accessor it) const |
| const T & | operator() (const size_t c0, const size_t c1) const |
| const T & | operator() (const size_t c0, const size_t c1, const size_t c2) const |
| const T & | operator() (const size_t c0, const size_t c1, const size_t c2, const size_t c3) const |
| const T & | operator() (const size_t c0, const size_t c1, const size_t c2, const size_t c3, const size_t c4) const |
| const T & | operator[] (const size_t offset) const |
| operator View< T, isConst, A > & () | |
| operator View< T, isConst, A >const & () const | |
Array-Interface to an interval of memory.
A view makes a subset of memory look as if it was stored in an Marray. With the help of a view, data in a subset of memory can be accessed and manipulated conveniently. In contrast to arrays which allocate and de-allocate their own memory, views only reference memory that has been allocated by other means. Perhaps the simplest and most important use of views is to read and manipulate sub-arrays.
Notes on arithmetic operators of View:
Definition at line 44 of file marray.hxx.
| typedef A::template rebind<value_type>::other marray::View< T, isConst, A >::allocator_type |
Definition at line 220 of file marray.hxx.
| typedef ViewExpression<View<T, isConst, A>, T> marray::View< T, isConst, A >::base |
Definition at line 219 of file marray.hxx.
| typedef Iterator<T, true, A> marray::View< T, isConst, A >::const_iterator |
Definition at line 216 of file marray.hxx.
| typedef const T* marray::View< T, isConst, A >::const_pointer |
Definition at line 212 of file marray.hxx.
| typedef const T& marray::View< T, isConst, A >::const_reference |
Definition at line 214 of file marray.hxx.
| typedef std::reverse_iterator<const_iterator> marray::View< T, isConst, A >::const_reverse_iterator |
Definition at line 218 of file marray.hxx.
| typedef Iterator<T, isConst, A> marray::View< T, isConst, A >::iterator |
Definition at line 215 of file marray.hxx.
| typedef marray_detail::IfBool<isConst, const T*, T*>::type marray::View< T, isConst, A >::pointer |
Definition at line 211 of file marray.hxx.
| typedef marray_detail::IfBool<isConst, const T&, T&>::type marray::View< T, isConst, A >::reference |
Definition at line 213 of file marray.hxx.
| typedef std::reverse_iterator<iterator> marray::View< T, isConst, A >::reverse_iterator |
Definition at line 217 of file marray.hxx.
| typedef T marray::View< T, isConst, A >::value_type |
Definition at line 209 of file marray.hxx.
| typedef T marray::View< T, isConst, A >::ValueType |
Definition at line 210 of file marray.hxx.
|
inline |
Empty constructor.
The empty constructor sets the data pointer to 0. It does not allocate memory for a scalar.
| allocator | Allocator. |
Definition at line 922 of file marray.hxx.
|
inline |
Construct View from a scalar.
| data | Pointer to data. |
| allocator | Allocator. |
Definition at line 953 of file marray.hxx.
|
inline |
Construct View from a View on mutable data.
| in | View on mutable data. |
Definition at line 970 of file marray.hxx.
|
inline |
Construct unstrided View.
| begin | Iterator to the beginning of a sequence that defines the shape. |
| end | Iterator to the end of this sequence. |
| data | Pointer to data. |
| externalCoordinateOrder | Flag specifying the order of coordinates based on which the strides are computed. |
| internalCoordinateOrder | Flag specifying the order of coordinates used for scalar indexing and iterators. |
| allocator | Allocator. |
Definition at line 996 of file marray.hxx.
|
inline |
Construct strided View.
| begin | Iterator to the beginning of a sequence that defines the shape. |
| end | Iterator to the end of this sequence. |
| it | Iterator to the beginning of a sequence that defines the strides. |
| data | Pointer to data. |
| internalCoordinateOrder | Flag specifying the order of coordinates used for scalar indexing and iterators. |
| allocator | Allocator. |
Definition at line 1027 of file marray.hxx.
|
inline |
Clear View.
Leaves the View in the same state as if the empty constructor had been called.
Definition at line 1105 of file marray.hxx.
Here is the caller graph for this function:
|
inline |
Initialize unstrided View.
| begin | Iterator to the beginning of a sequence that defines the shape. |
| end | Iterator to the end of this sequence. |
| data | Pointer to data. |
| externalCoordinateOrder | Flag specifying the order of coordinates based on which the strides are computed. |
| internalCoordinateOrder | Flag specifying the order of coordinates used for scalar indexing and iterators. |
| allocator | Allocator. |
Definition at line 1130 of file marray.hxx.
|
inline |
Initialize strided View.
| begin | Iterator to the beginning of a sequence that defines the shape. |
| end | Iterator to the end of this sequence. |
| it | Iterator to the beginning of a sequence that defines the strides. |
| data | Pointer to data. |
| internalCoordinateOrder | Flag specifying the order of coordinates used for scalar indexing and iterators. |
| allocator | Allocator. |
Definition at line 1164 of file marray.hxx.
| std::string marray::View< T, isConst, A >::asString | ( | const StringStyle & | style = MatrixStyle | ) | const |
Output as string.
Definition at line 2960 of file marray.hxx.
|
inline |
Get an iterator to the beginning.
Definition at line 2714 of file marray.hxx.
Here is the caller graph for this function:
|
inline |
Get an iterator to the beginning.
Definition at line 2740 of file marray.hxx.
| View< T, isConst, A > marray::View< T, isConst, A >::boundView | ( | const size_t | dimension, |
| const size_t | value = 0 |
||
| ) | const |
Get a View where one coordinate is bound to a value.
Binds one coordinate to a certain value. This reduces the dimension by 1.
| dimension | Dimension of the coordinate to bind. |
| value | Value to assign to the coordinate. |
Definition at line 2374 of file marray.hxx.
Here is the caller graph for this function:
|
inline |
Get a sub-view to constant data with the same coordinate order.
| bit | Iterator to the beginning of a coordinate sequence that determines the start position of the sub-view. |
| sit | Iterator to the beginning of a sequence that determines the shape of the sub-view. |
| out | Sub-View (output). |
Definition at line 2084 of file marray.hxx.
|
inline |
Get a sub-view to constant data.
| bit | Iterator to the beginning of a coordinate sequence that determines the start position of the sub-view. |
| sit | Iterator to the beginning of a sequence that determines the shape of the sub-view. |
| internalCoordinateOrder | Flag to set the coordinate order for scalar indexing and iterators of the sub-view. |
| out | Sub-View (output). |
Definition at line 2107 of file marray.hxx.
|
inline |
Get a sub-view to constant data with the same coordinate order.
| bit | Iterator to the beginning of a coordinate sequence that determines the start position of the sub-view. |
| sit | Iterator to the beginning of a sequence that determines the shape of the sub-view. |
Definition at line 2136 of file marray.hxx.
|
inline |
Get a sub-view to constant data.
| bit | Iterator to the beginning of a coordinate sequence that determines the start position of the sub-view. |
| sit | Iterator to the beginning of a sequence that determines the shape of the sub-view. |
| internalCoordinateOrder | Flag to set the coordinate order for scalar indexing and iterators of the sub-view. |
Definition at line 2160 of file marray.hxx.
|
inline |
Get the coordinate order used for scalar indexing and iterators.
Definition at line 1815 of file marray.hxx.
Here is the caller graph for this function:
|
inline |
Compute the index that corresponds to a sequence of coordinates.
| it | An iterator to the beginning of the coordinate sequence. |
| out | Index (output) |
Definition at line 766 of file marray.hxx.
|
inline |
Compute the offset that corresponds to a sequence of coordinates.
| it | An iterator to the beginning of the coordinate sequence. |
| out | Index (output) |
Definition at line 808 of file marray.hxx.
|
inline |
Get the dimension.
Not well-defined if the data pointer is 0.
Definition at line 1711 of file marray.hxx.
Here is the caller graph for this function:
|
inline |
Get the end-iterator.
Definition at line 2727 of file marray.hxx.
Here is the caller graph for this function:
|
inline |
|
inline |
Compute the coordinate sequence that corresponds to an index.
| index | Index |
| outit | An iterator into a container into which the coordinate sequence is to be written (output). |
Definition at line 832 of file marray.hxx.
Here is the caller graph for this function:
|
inline |
Compute the offset that corresponds to an index.
| index | Index. |
| out | Offset (output). |
Definition at line 872 of file marray.hxx.
|
inline |
Determine whether the shape strides equal the strides of the View.
Definition at line 1827 of file marray.hxx.
Here is the caller graph for this function:
|
inline |
Reference data.
| u | If u is an integer type, scalar indexing is performed. Otherwise, it is assumed that u is an iterator to the beginning of a coordinate sequence. |
Definition at line 1245 of file marray.hxx.
|
inline |
Reference data.
| u | If u is an integer type, scalar indexing is performed. Otherwise, it is assumed that u is an iterator to the beginning of a coordinate sequence. |
Definition at line 1263 of file marray.hxx.
|
inline |
Reference data in a 2-dimensional View by coordinates.
This function issues a runtime error if the View is not 2-dimensional.
| c0 | 1st coordinate. |
| c1 | 2nd coordinate. |
Definition at line 1283 of file marray.hxx.
|
inline |
Reference data in a 2-dimensional View by coordinates.
This function issues a runtime error if the View is not 2-dimensional.
| c0 | 1st coordinate. |
| c1 | 2nd coordinate. |
Definition at line 1305 of file marray.hxx.
|
inline |
Reference data in a 3-dimensional View by coordinates.
This function issues a runtime error if the View is not 3-dimensional.
| c0 | 1st coordinate. |
| c1 | 2nd coordinate. |
| c2 | 3rd coordinate. |
Definition at line 1328 of file marray.hxx.
|
inline |
Reference data in a 3-dimensional View by coordinates.
This function issues a runtime error if the View is not 3-dimensional.
| c0 | 1st coordinate. |
| c1 | 2nd coordinate. |
| c2 | 3rd coordinate. |
Definition at line 1353 of file marray.hxx.
|
inline |
Reference data in a 4-dimensional View by coordinates.
This function issues a runtime error if the View is not 4-dimensional.
| c0 | 1st coordinate. |
| c1 | 2nd coordinate. |
| c2 | 3rd coordinate. |
| c3 | 4th coordinate. |
Definition at line 1379 of file marray.hxx.
|
inline |
Reference data in a 4-dimensional View by coordinates.
This function issues a runtime error if the View is not 4-dimensional.
| c0 | 1st coordinate. |
| c1 | 2nd coordinate. |
| c2 | 3rd coordinate. |
| c3 | 4th coordinate. |
Definition at line 1407 of file marray.hxx.
|
inline |
Reference data in a 5-dimensional View by coordinates.
This function issues a runtime error if the View is not 5-dimensional.
| c0 | 1st coordinate. |
| c1 | 2nd coordinate. |
| c2 | 3rd coordinate. |
| c3 | 4th coordinate. |
| c4 | 5th coordinate. |
Definition at line 1436 of file marray.hxx.
|
inline |
Reference data in a 5-dimensional View by coordinates.
This function issues a runtime error if the View is not 5-dimensional.
| c0 | 1st coordinate. |
| c1 | 2nd coordinate. |
| c2 | 3rd coordinate. |
| c3 | 4th coordinate. |
| c4 | 5th coordinate. |
Definition at line 1466 of file marray.hxx.
|
inline |
Reference data in a 10-dimensional View by coordinates.
This function issues a runtime error if the View is not 5-dimensional.
| c0 | 1st coordinate. |
| c1 | 2nd coordinate. |
| c2 | 3rd coordinate. |
| c3 | 4th coordinate. |
| c4 | 5th coordinate. |
| c5 | 6th coordinate. |
| c6 | 7th coordinate. |
| c7 | 8th coordinate. |
| c8 | 9th coordinate. |
| c9 | 10th coordinate. |
Definition at line 1502 of file marray.hxx.
|
inline |
Reference data in a 10-dimensional View by coordinates.
This function issues a runtime error if the View is not 5-dimensional.
| c0 | 1st coordinate. |
| c1 | 2nd coordinate. |
| c2 | 3rd coordinate. |
| c3 | 4th coordinate. |
| c4 | 5th coordinate. |
| c5 | 6th coordinate. |
| c6 | 7th coordinate. |
| c7 | 8th coordinate. |
| c8 | 9th coordinate. |
| c9 | 10th coordinate. |
Definition at line 1545 of file marray.hxx.
|
inline |
Assignment.
| value | Value. |
All entries are set to value.
Definition at line 1925 of file marray.hxx.
|
inline |
Assignment.
operator= (the assignment operator) has a non-trivial behavior. In most cases, it will work as most programmers will expect. Here's a complete description of the semantics of to.operator=(from) or equivalently, to = from.
Consider the following cases: (1) 'to' is mutable (isConst == false) (a) 'from' is mutable (isConst == false) (i) 'to' is initialized (data_ != 0) (ii) 'to' is un-initialized (data_ == 0) (b) 'from' is constant (isConst == true) (2) 'to' is constant (isConst == true)
(i) The operator attempts to copy the data under view 'b' to the memory under view 'a'. This works if both views have the same size, regardless of their dimension and shape. Equality of sizes is checked by an assertion.
(ii) Unless &a == &b (self-assignment), the operator copies the (data) pointer of view 'b' to view 'a', without copying the data itself. In addition, all the properties of view 'b' are copied to view 'a'.
(b) The operator attempts to copy the data under view 'b' to the memory under view 'a'. This works if both views have the same size, regardless of their dimension and shape. Equality of sizes is checked by an assertion. If 'a' is un-initialized the assertion fails (because the size of a will be zero). Unlike in (ii), the pointer is not copied in this case. Thus, a conversion from mutable to const is prevented.
(2) Unless &a == &b (self-assignment), the operator copies the (data) pointer of view 'b' to view 'a', without copying the data itself. In addition, all the properties of view 'b' are copied to view 'a'. Note that changing the data under a constant view would be counter-intuitive.
Definition at line 1875 of file marray.hxx.
|
inline |
Assignment.
Definition at line 1890 of file marray.hxx.
|
inline |
Assignment.
Definition at line 1906 of file marray.hxx.
|
inline |
Definition at line 1967 of file marray.hxx.
|
inline |
Check whether two Views overlap.
This function returns true if two memory intervals overlap: (1) the interval between the first and the last element of the object whose member function overlaps() is called. (2) the interval between the first and the last element of v.
Note that this not necessarily implies the existence of an element that is addressed by both v and the current object. v could for instance address all odd elements in a vector while the current object addresses all even elements.
| v | A view to compare with *this. |
Definition at line 2930 of file marray.hxx.
| void marray::View< T, isConst, A >::permute | ( | CoordinateIterator | begin | ) |
Permute dimensions.
| begin | Iterator to the beginning of a sequence which has to contain the integers 0, ..., dimension()-1 in any order. Otherwise, a runtime error is thrown. |
Definition at line 2493 of file marray.hxx.
|
inline |
Get a View with permuted dimensions.
| begin | Iterator to the beginning of a sequence which has to contain the integers 0, ..., dimension()-1 in any order. Otherwise, a runtime error is thrown. |
Definition at line 2540 of file marray.hxx.
|
inline |
Get a reserve iterator to the beginning.
Definition at line 2767 of file marray.hxx.
|
inline |
Get a reserve iterator to the beginning.
Definition at line 2791 of file marray.hxx.
|
inline |
Get the reverse end-iterator.
Definition at line 2779 of file marray.hxx.
|
inline |
Get the reverse end-iterator.
Definition at line 2803 of file marray.hxx.
|
inline |
Reshape the View.
Two conditions have to be fulfilled in order for reshape to work:
| begin | Iterator to the beginning of a sequence that determines the new shape. |
| end | Iterator to the end of that sequence. |
Definition at line 2275 of file marray.hxx.
|
inline |
Get a reshaped View.
Two conditions have to be fulfilled:
| begin | Iterator to the beginning of a sequence that determines the new shape. |
| end | Iterator to the end of that sequence. |
Definition at line 2307 of file marray.hxx.
|
inline |
Get the shape in one dimension.
| dimension | Dimension |
Definition at line 1725 of file marray.hxx.
Here is the caller graph for this function:
|
inline |
Get a constant iterator to the beginning of the shape vector.
Definition at line 1742 of file marray.hxx.
Here is the caller graph for this function:
|
inline |
Get a constant iterator to the end of the shape vector.
Definition at line 1756 of file marray.hxx.
Here is the caller graph for this function:
|
inline |
Cycle shift dimensions.
| n | Number of positions to shift |
Definition at line 2665 of file marray.hxx.
|
inline |
Get a View which dimensions cycle shifted.
| n | Number of positions to shift |
Definition at line 2697 of file marray.hxx.
|
inline |
Get the number of data items.
Definition at line 1698 of file marray.hxx.
Here is the caller graph for this function:| void marray::View< T, isConst, A >::squeeze | ( | ) |
Remove singleton dimensions by setting their coordinates to zero.
Definition at line 2414 of file marray.hxx.
|
inline |
Get a View where all singleton dimensions have been removed by setting their coordinates to zero.
Definition at line 2454 of file marray.hxx.
|
inline |
Get the strides in one dimension.
| dimension | Dimension |
Definition at line 1771 of file marray.hxx.
|
inline |
Get a constant iterator to the beginning of the strides vector.
Definition at line 1788 of file marray.hxx.
|
inline |
Get a constant iterator to the end of the strides vector.
Definition at line 1802 of file marray.hxx.
| void marray::View< T, isConst, A >::transpose | ( | const size_t | c1, |
| const size_t | c2 | ||
| ) |
Exchange two dimensions.
| c1 | Dimension |
| c2 | Dimension |
Definition at line 2558 of file marray.hxx.
| void marray::View< T, isConst, A >::transpose | ( | ) |
Reverse dimensions.
Definition at line 2597 of file marray.hxx.
|
inline |
Get a View with two dimensions exchanged.
| c1 | Dimension |
| c2 | Dimension |
Definition at line 2631 of file marray.hxx.
|
inline |
Get a View with dimensions reversed.
Definition at line 2649 of file marray.hxx.
|
inline |
Get a sub-view with the same coordinate order.
| bit | Iterator to the beginning of a coordinate sequence that determines the start position of the sub-view. |
| sit | Iterator to the beginning of a sequence that determines the shape of the sub-view. |
| out | Sub-View (output). |
Definition at line 1987 of file marray.hxx.
|
inline |
Get a sub-view.
| bit | Iterator to the beginning of a coordinate sequence that determines the start position of the sub-view. |
| sit | Iterator to the beginning of a sequence that determines the shape of the sub-view. |
| internalCoordinateOrder | Flag to set the coordinate order for scalar indexing and iterators of the sub-view. |
| out | Sub-View (output). |
Definition at line 2010 of file marray.hxx.
|
inline |
Get a sub-view with the same coordinate order.
| bit | Iterator to the beginning of a coordinate sequence that determines the start position of the sub-view. |
| sit | Iterator to the beginning of a sequence that determines the shape of the sub-view. |
Definition at line 2036 of file marray.hxx.
|
inline |
Get a sub-view.
| bit | Iterator to the beginning of a coordinate sequence that determines the start position of the sub-view. |
| sit | Iterator to the beginning of a sequence that determines the shape of the sub-view. |
| internalCoordinateOrder | Flag to set the coordinate order for scalar indexing and iterators of the sub-view. |
Definition at line 2060 of file marray.hxx.
1.8.9.1