RTOp Package Browser (Single Doxygen Collection)
Version of the Day
|
Class for a non-changeable sub-multi-vector (submatrix). More...
#include <RTOpPack_Types.hpp>
Public Member Functions | |
ConstSubMultiVectorView () | |
ConstSubMultiVectorView (Ordinal globalOffset_in, Ordinal subDim_in, Ordinal colOffset_in, Ordinal numSubCols_in, const ArrayRCP< const Scalar > &values_in, Ordinal leadingDim_in) | |
ConstSubMultiVectorView (const ConstSubMultiVectorView< Scalar > &smv) | |
void | initialize (Ordinal globalOffset_in, Ordinal subDim_in, Ordinal colOffset_in, Ordinal numSubCols_in, const ArrayRCP< const Scalar > &values_in, Ordinal leadingDim_in) |
void | uninitialize () |
void | setGlobalOffset (Ordinal globalOffset_in) |
Ordinal | globalOffset () const |
Ordinal | subDim () const |
Ordinal | colOffset () const |
Ordinal | numSubCols () const |
const ArrayRCP< const Scalar > | values () const |
Ordinal | leadingDim () const |
const Scalar & | operator() (Ordinal i, Ordinal j) const |
Zero-based indexing (Preconditions: values()!=NULL && (0<=i<subDim()) && (0<=j< numSubCols() ). More... | |
ConstSubVectorView< Scalar > | col (const Ordinal j) const |
Return a ConstSubVectorView view of the jth sub-column (Preconditions: values()!=NULL && (0<=j<numSubCols() ). More... | |
Private Attributes | |
Ordinal | globalOffset_ |
Ordinal | subDim_ |
Ordinal | colOffset_ |
Ordinal | numSubCols_ |
ArrayRCP< const Scalar > | values_ |
Ordinal | leadingDim_ |
Class for a non-changeable sub-multi-vector (submatrix).
For a sub-multi-vector mv
, the corresponding entries in the global multi-vector X(j)
(one based) are as follows:
X(mv.globalOffset()+k1,mv.colOffset()+k2) = mv(k1,k2), for k1 = 0...mv.subDim()-1, k2 = 0...mv.numSubCols()-1
Unlike vectors, there can only be a unit stride between vector elements in a particular column and there is a Fortran-like leading dimension mv.leadingDim()
that separates corresponding elements in each column sub-vector.
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 313 of file RTOpPack_Types.hpp.
|
inline |
Definition at line 316 of file RTOpPack_Types.hpp.
|
inline |
Definition at line 321 of file RTOpPack_Types.hpp.
|
inline |
Definition at line 333 of file RTOpPack_Types.hpp.
|
inline |
Definition at line 339 of file RTOpPack_Types.hpp.
|
inline |
Definition at line 366 of file RTOpPack_Types.hpp.
|
inline |
Definition at line 372 of file RTOpPack_Types.hpp.
|
inline |
Definition at line 380 of file RTOpPack_Types.hpp.
|
inline |
Definition at line 382 of file RTOpPack_Types.hpp.
|
inline |
Definition at line 384 of file RTOpPack_Types.hpp.
|
inline |
Definition at line 386 of file RTOpPack_Types.hpp.
|
inline |
Definition at line 388 of file RTOpPack_Types.hpp.
|
inline |
Definition at line 390 of file RTOpPack_Types.hpp.
|
inline |
Zero-based indexing (Preconditions: values()!=NULL && (0<=i<subDim()) && (0<=j< numSubCols()
).
Definition at line 394 of file RTOpPack_Types.hpp.
|
inline |
Return a ConstSubVectorView
view of the jth sub-column (Preconditions: values()!=NULL && (0<=j<numSubCols()
).
Definition at line 405 of file RTOpPack_Types.hpp.
|
private |
Definition at line 414 of file RTOpPack_Types.hpp.
|
private |
Definition at line 415 of file RTOpPack_Types.hpp.
|
private |
Definition at line 416 of file RTOpPack_Types.hpp.
|
private |
Definition at line 417 of file RTOpPack_Types.hpp.
|
private |
Definition at line 418 of file RTOpPack_Types.hpp.
|
private |
Definition at line 419 of file RTOpPack_Types.hpp.