#include <RTOpPack_Types.hpp>
Inheritance diagram for RTOpPack::SubVectorT< Scalar >:
Public Member Functions | |
| SubVectorT () | |
| | |
| SubVectorT (RTOp_index_type globalOffset, RTOp_index_type subDim, const Scalar *values, ptrdiff_t stride) | |
| | |
| SubVectorT (const SubVectorT< Scalar > &sv) | |
| | |
| void | initialize (RTOp_index_type globalOffset, RTOp_index_type subDim, const Scalar *values, ptrdiff_t stride) |
| | |
| void | set_uninitialized () |
| | |
| void | setGlobalOffset (RTOp_index_type globalOffset) |
| | |
| RTOp_index_type | globalOffset () const |
| | |
| RTOp_index_type | subDim () const |
| | |
| const Scalar * | values () const |
| | |
| ptrdiff_t | stride () const |
| | |
| const Scalar & | operator[] (RTOp_index_type i) const |
Zero-based indexing (Preconditions: values()!=NULL && (0 <= i <= subDim()-1)). | |
| const Scalar & | operator() (RTOp_index_type i) const |
One-based indexing (Preconditions: values()!=NULL && (1 <= i <= subDim())). | |
For a sub-vector vec, the corresponding entries in the global vector x(j) (one based) are as follows:
x( vec.globalOffset() + k ) = v.(k), for k = 1,...,vec.subDim()
vec.stride() may be positive (>0), negative (<0) or even zero (0). A negative stride vec.stride() < 0 allows a reverse traversal of the elements. A zero stride vec.stride() allows a sub-vector with all the elements the same.
The raw pointer to the start of the memory can be obtained as &vec(1).
Warning! the default copy constructor and assignment operators are allowed which results in only pointer copy, not deep copy! You have been warned!
Definition at line 95 of file RTOpPack_Types.hpp.
|
|||||||||
|
Definition at line 98 of file RTOpPack_Types.hpp. |
|
||||||||||||||||||||||||
|
Definition at line 100 of file RTOpPack_Types.hpp. |
|
||||||||||
|
Definition at line 104 of file RTOpPack_Types.hpp. |
|
||||||||||||||||||||||||
|
Definition at line 108 of file RTOpPack_Types.hpp. |
|
|||||||||
|
Reimplemented in RTOpPack::MutableSubVectorT< Scalar >. Definition at line 111 of file RTOpPack_Types.hpp. |
|
||||||||||
|
Definition at line 114 of file RTOpPack_Types.hpp. |
|
|||||||||
|
Definition at line 116 of file RTOpPack_Types.hpp. |
|
|||||||||
|
Definition at line 118 of file RTOpPack_Types.hpp. |
|
|||||||||
|
Reimplemented in RTOpPack::MutableSubVectorT< Scalar >. Definition at line 120 of file RTOpPack_Types.hpp. |
|
|||||||||
|
Definition at line 122 of file RTOpPack_Types.hpp. |
|
||||||||||
|
Zero-based indexing (Preconditions:
Reimplemented in RTOpPack::MutableSubVectorT< Scalar >. Definition at line 124 of file RTOpPack_Types.hpp. |
|
||||||||||
|
One-based indexing (Preconditions:
Reimplemented in RTOpPack::MutableSubVectorT< Scalar >. Definition at line 126 of file RTOpPack_Types.hpp. |
1.3.9.1