#include <Kokkos_OskiMultiVector.hpp>
Inheritance diagram for Kokkos::OskiMultiVector< OrdinalType, ScalarType >:
Public Member Functions | |
Constructors/Destructor. | |
| OskiMultiVector (void) | |
| Default constructor. | |
| OskiMultiVector (const OskiMultiVector &source) | |
| Copy constructor. | |
| virtual | ~OskiMultiVector () |
| OskiMultiVector Destructor. | |
Initialization methods | |
| int | initializeValues (OrdinalType numRows, OrdinalType numCols, ScalarType **values) |
| Initialize using an array of pointers. | |
| int | initializeValues (OrdinalType numRows, OrdinalType numCols, ScalarType *values, OrdinalType rowInc, OrdinalType colInc=1) |
| Initialize using a two-dimensional array. | |
Multivector entry access methods. | |
| virtual ScalarType ** | getValues () const |
| Returns an array of pointers such that the ith pointer points to an array of values in the ith column of the multivector. | |
| virtual ScalarType * | getValues (OrdinalType i) const |
| Returns a pointer to an array of values for the ith column of the multivector. | |
DenseMultiVector Attribute access methods. | |
| virtual OrdinalType | getNumRows () const |
| Number of rows. | |
| virtual OrdinalType | getNumCols () const |
| Number of columns. | |
| virtual bool | getIsStrided () const |
| Indicates whether or not array is strided. | |
| virtual OrdinalType | getRowInc () const |
| Increment between entries in a row of the multivector, normally = numRows(). | |
| virtual OrdinalType | getColInc () const |
| Increment between entries in a column of the multivector, normally = 1. | |
| virtual oski_vecview_t | getX_view () const |
| Underlying OSKI MultiVector. | |
Protected Attributes | |
| oski_vecview_t | x_view_ |
| bool | dataInitialized_ |
| ScalarType ** | values_ |
| ScalarType * | allValues_ |
| bool | isStrided_ |
At this time, the primary function provided by Kokkos::OskiMultiVector is wrapping an oski_vecview_t object and providing access to its entries.
|
||||||||||
|
Returns a pointer to an array of values for the ith column of the multivector. Extract a pointer to the values in the ith column of the multivector. Note that the values are not copied by this method. Memory allocation is handled by the multivector object itself. Also, if the getIsStrided() method returns true, then the getColInc() should be used to access values in the ith column of the multivector, especially if getColInc() != 1.
Implements Kokkos::MultiVector< OrdinalType, ScalarType >. |
|
|||||||||
|
Returns an array of pointers such that the ith pointer points to an array of values in the ith column of the multivector. Extract an array of pointers such that the ith pointer points to the values in the ith column of the multivector. Note that the values are not copied by this method. Memory allocation is handled by the multivector object itself. Implements Kokkos::MultiVector< OrdinalType, ScalarType >. Reimplemented in Kokkos::OskiVector< OrdinalType, ScalarType >. |
|
||||||||||||||||||||||||||||
|
Initialize using a two-dimensional array. This interface supports multivectors that are stored as 2D arrays, or subsections of one.
|
|
||||||||||||||||||||
|
Initialize using an array of pointers. This interface supports multivectors that are stored as an array of pointers.
|
1.3.9.1