|
RTOp Package Browser (Single Doxygen Collection) Version of the Day
|
Class for a non-changeable sub-vector. More...
#include <RTOpPack_Types.hpp>

Public Member Functions | |
| ConstSubVectorView () | |
| | |
| ConstSubVectorView (const ArrayRCP< const Scalar > &values_in) | |
| | |
| ConstSubVectorView (Ordinal globalOffset_in, Ordinal subDim_in, const ArrayRCP< const Scalar > &values_in, ptrdiff_t stride_in) | |
| | |
| ConstSubVectorView (const ConstSubVectorView< Scalar > &sv) | |
| | |
| void | initialize (Ordinal globalOffset_in, Ordinal subDim_in, const ArrayRCP< const Scalar > &values_in, ptrdiff_t stride_in) |
| | |
| void | uninitialize () |
| | |
| void | setGlobalOffset (Ordinal globalOffset_in) |
| | |
| Ordinal | globalOffset () const |
| | |
| Ordinal | subDim () const |
| | |
| const ArrayRCP< const Scalar > | values () const |
| | |
| ptrdiff_t | stride () const |
| | |
| const Scalar & | operator[] (Ordinal i) const |
Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim())). | |
| const Scalar & | operator() (Ordinal i) const |
Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim())). | |
| RTOP_DEPRECATED | ConstSubVectorView (Ordinal globalOffset_in, Ordinal subDim_in, const Scalar values_in[], ptrdiff_t stride_in) |
| Deprecated. | |
| RTOP_DEPRECATED void | initialize (Ordinal globalOffset_in, Ordinal subDim_in, const Scalar values_in[], ptrdiff_t stride_in) |
| Deprecated. | |
| RTOP_DEPRECATED void | set_uninitialized () |
| Deprecated. | |
Private Member Functions | |
| const ArrayRCP< const Scalar > ::iterator | valuesBegin () const |
Private Attributes | |
| Ordinal | globalOffset_ |
| Ordinal | subDim_ |
| ArrayRCP< const Scalar > | values_ |
| ptrdiff_t | stride_ |
Related Functions | |
(Note that these are not member functions.) | |
| template<class Scalar > | |
| std::ostream & | operator<< (std::ostream &out, const ConstSubVectorView< Scalar > &sv) |
| | |
Class for a non-changeable sub-vector.
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 = 0...vec.subDim()-1
The stride vec.stride() may be positive (>0) or negative (<0) but not zero (0). A negative stride vec.stride() < 0 allows a reverse traversal of the elements.
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 143 of file RTOpPack_Types.hpp.
| RTOpPack::ConstSubVectorView< Scalar >::ConstSubVectorView | ( | ) | [inline] |
Definition at line 146 of file RTOpPack_Types.hpp.
| RTOpPack::ConstSubVectorView< Scalar >::ConstSubVectorView | ( | const ArrayRCP< const Scalar > & | values_in | ) | [inline] |
Definition at line 148 of file RTOpPack_Types.hpp.
| RTOpPack::ConstSubVectorView< Scalar >::ConstSubVectorView | ( | Ordinal | globalOffset_in, |
| Ordinal | subDim_in, | ||
| const ArrayRCP< const Scalar > & | values_in, | ||
| ptrdiff_t | stride_in | ||
| ) | [inline] |
Definition at line 152 of file RTOpPack_Types.hpp.
| RTOpPack::ConstSubVectorView< Scalar >::ConstSubVectorView | ( | const ConstSubVectorView< Scalar > & | sv | ) | [inline] |
Definition at line 157 of file RTOpPack_Types.hpp.
| RTOP_DEPRECATED RTOpPack::ConstSubVectorView< Scalar >::ConstSubVectorView | ( | Ordinal | globalOffset_in, |
| Ordinal | subDim_in, | ||
| const Scalar | values_in[], | ||
| ptrdiff_t | stride_in | ||
| ) | [inline] |
Deprecated.
Definition at line 228 of file RTOpPack_Types.hpp.
| void RTOpPack::ConstSubVectorView< Scalar >::initialize | ( | Ordinal | globalOffset_in, |
| Ordinal | subDim_in, | ||
| const ArrayRCP< const Scalar > & | values_in, | ||
| ptrdiff_t | stride_in | ||
| ) | [inline] |
Definition at line 162 of file RTOpPack_Types.hpp.
| void RTOpPack::ConstSubVectorView< Scalar >::uninitialize | ( | ) | [inline] |
Definition at line 185 of file RTOpPack_Types.hpp.
| void RTOpPack::ConstSubVectorView< Scalar >::setGlobalOffset | ( | Ordinal | globalOffset_in | ) | [inline] |
Definition at line 188 of file RTOpPack_Types.hpp.
| Ordinal RTOpPack::ConstSubVectorView< Scalar >::globalOffset | ( | ) | const [inline] |
Definition at line 196 of file RTOpPack_Types.hpp.
| Ordinal RTOpPack::ConstSubVectorView< Scalar >::subDim | ( | ) | const [inline] |
Definition at line 198 of file RTOpPack_Types.hpp.
| const ArrayRCP<const Scalar> RTOpPack::ConstSubVectorView< Scalar >::values | ( | ) | const [inline] |
Reimplemented in RTOpPack::SubVectorView< Scalar >.
Definition at line 200 of file RTOpPack_Types.hpp.
| ptrdiff_t RTOpPack::ConstSubVectorView< Scalar >::stride | ( | ) | const [inline] |
Definition at line 202 of file RTOpPack_Types.hpp.
| const Scalar& RTOpPack::ConstSubVectorView< Scalar >::operator[] | ( | Ordinal | i | ) | const [inline] |
Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim())).
Reimplemented in RTOpPack::SubVectorView< Scalar >.
Definition at line 205 of file RTOpPack_Types.hpp.
| const Scalar& RTOpPack::ConstSubVectorView< Scalar >::operator() | ( | Ordinal | i | ) | const [inline] |
Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim())).
Reimplemented in RTOpPack::SubVectorView< Scalar >.
Definition at line 214 of file RTOpPack_Types.hpp.
| const ArrayRCP<const Scalar>::iterator RTOpPack::ConstSubVectorView< Scalar >::valuesBegin | ( | ) | const [inline, private] |
Definition at line 220 of file RTOpPack_Types.hpp.
| RTOP_DEPRECATED void RTOpPack::ConstSubVectorView< Scalar >::initialize | ( | Ordinal | globalOffset_in, |
| Ordinal | subDim_in, | ||
| const Scalar | values_in[], | ||
| ptrdiff_t | stride_in | ||
| ) | [inline] |
Deprecated.
Reimplemented in RTOpPack::SubVectorView< Scalar >.
Definition at line 234 of file RTOpPack_Types.hpp.
| RTOP_DEPRECATED void RTOpPack::ConstSubVectorView< Scalar >::set_uninitialized | ( | ) | [inline] |
Deprecated.
Definition at line 243 of file RTOpPack_Types.hpp.
| std::ostream & operator<< | ( | std::ostream & | out, |
| const ConstSubVectorView< Scalar > & | sv | ||
| ) | [related] |
Definition at line 332 of file RTOpPack_Types.hpp.
Ordinal RTOpPack::ConstSubVectorView< Scalar >::globalOffset_ [private] |
Definition at line 216 of file RTOpPack_Types.hpp.
Ordinal RTOpPack::ConstSubVectorView< Scalar >::subDim_ [private] |
Definition at line 217 of file RTOpPack_Types.hpp.
ArrayRCP<const Scalar> RTOpPack::ConstSubVectorView< Scalar >::values_ [private] |
Definition at line 218 of file RTOpPack_Types.hpp.
ptrdiff_t RTOpPack::ConstSubVectorView< Scalar >::stride_ [private] |
Definition at line 219 of file RTOpPack_Types.hpp.
1.7.4