#include <RTOpPack_Types.hpp>
Inheritance diagram for RTOpPack::ConstSubVectorView< Scalar >:

Public Member Functions | |
| ConstSubVectorView () | |
| | |
| ConstSubVectorView (const ArrayRCP< const Scalar > &values) | |
| | |
| ConstSubVectorView (Teuchos_Index globalOffset, Teuchos_Index subDim, const ArrayRCP< const Scalar > &values, ptrdiff_t stride) | |
| | |
| ConstSubVectorView (const ConstSubVectorView< Scalar > &sv) | |
| | |
| void | initialize (Teuchos_Index globalOffset, Teuchos_Index subDim, const ArrayRCP< const Scalar > &values, ptrdiff_t stride) |
| | |
| void | uninitialize () |
| | |
| void | setGlobalOffset (Teuchos_Index globalOffset) |
| | |
| Teuchos_Index | globalOffset () const |
| | |
| Teuchos_Index | subDim () const |
| | |
| const ArrayRCP< const Scalar > | values () const |
| | |
| ptrdiff_t | stride () const |
| | |
| const Scalar & | operator[] (Teuchos_Index i) const |
Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim())). | |
| const Scalar & | operator() (Teuchos_Index i) const |
Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim())). | |
| ConstSubVectorView (Teuchos_Index globalOffset, Teuchos_Index subDim, const Scalar values[], ptrdiff_t stride) | |
| Deprecated. | |
| void | initialize (Teuchos_Index globalOffset, Teuchos_Index subDim, const Scalar values[], ptrdiff_t stride) |
| Deprecated. | |
| void | set_uninitialized () |
| Deprecated. | |
Related Functions | |
| (Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &out, const ConstSubVectorView< Scalar > &sv) |
| | |
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 125 of file RTOpPack_Types.hpp.
| RTOpPack::ConstSubVectorView< Scalar >::ConstSubVectorView | ( | ) | [inline] |
| RTOpPack::ConstSubVectorView< Scalar >::ConstSubVectorView | ( | const ArrayRCP< const Scalar > & | values | ) | [inline] |
| RTOpPack::ConstSubVectorView< Scalar >::ConstSubVectorView | ( | Teuchos_Index | globalOffset, | |
| Teuchos_Index | subDim, | |||
| const ArrayRCP< const Scalar > & | values, | |||
| ptrdiff_t | stride | |||
| ) | [inline] |
| RTOpPack::ConstSubVectorView< Scalar >::ConstSubVectorView | ( | const ConstSubVectorView< Scalar > & | sv | ) | [inline] |
| RTOpPack::ConstSubVectorView< Scalar >::ConstSubVectorView | ( | Teuchos_Index | globalOffset, | |
| Teuchos_Index | subDim, | |||
| const Scalar | values[], | |||
| ptrdiff_t | stride | |||
| ) | [inline] |
| void RTOpPack::ConstSubVectorView< Scalar >::initialize | ( | Teuchos_Index | globalOffset, | |
| Teuchos_Index | subDim, | |||
| const ArrayRCP< const Scalar > & | values, | |||
| ptrdiff_t | stride | |||
| ) | [inline] |
| void RTOpPack::ConstSubVectorView< Scalar >::uninitialize | ( | ) | [inline] |
| void RTOpPack::ConstSubVectorView< Scalar >::setGlobalOffset | ( | Teuchos_Index | globalOffset | ) | [inline] |
| Teuchos_Index RTOpPack::ConstSubVectorView< Scalar >::globalOffset | ( | ) | const [inline] |
| Teuchos_Index RTOpPack::ConstSubVectorView< Scalar >::subDim | ( | ) | const [inline] |
| const ArrayRCP<const Scalar> RTOpPack::ConstSubVectorView< Scalar >::values | ( | ) | const [inline] |
Reimplemented in RTOpPack::SubVectorView< Scalar >.
Definition at line 182 of file RTOpPack_Types.hpp.
| ptrdiff_t RTOpPack::ConstSubVectorView< Scalar >::stride | ( | ) | const [inline] |
| const Scalar& RTOpPack::ConstSubVectorView< Scalar >::operator[] | ( | Teuchos_Index | i | ) | const [inline] |
Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim())).
Reimplemented in RTOpPack::SubVectorView< Scalar >.
Definition at line 187 of file RTOpPack_Types.hpp.
| const Scalar& RTOpPack::ConstSubVectorView< Scalar >::operator() | ( | Teuchos_Index | i | ) | const [inline] |
Zero-based indexing (Preconditions: values()!=NULL && (0 <= i < subDim())).
Reimplemented in RTOpPack::SubVectorView< Scalar >.
Definition at line 196 of file RTOpPack_Types.hpp.
| void RTOpPack::ConstSubVectorView< Scalar >::initialize | ( | Teuchos_Index | globalOffset, | |
| Teuchos_Index | subDim, | |||
| const Scalar | values[], | |||
| ptrdiff_t | stride | |||
| ) | [inline] |
Deprecated.
Reimplemented in RTOpPack::SubVectorView< Scalar >.
Definition at line 216 of file RTOpPack_Types.hpp.
| void RTOpPack::ConstSubVectorView< Scalar >::set_uninitialized | ( | ) | [inline] |
| std::ostream & operator<< | ( | std::ostream & | out, | |
| const ConstSubVectorView< Scalar > & | sv | |||
| ) | [related] |
1.4.7