#include <Kokkos_OskiVector.hpp>
Public Member Functions | |
Constructors/Destructor | |
OskiVector (void) | |
Default constructor. | |
OskiVector (const OskiVector &source) | |
Copy constructor. | |
virtual | ~OskiVector () |
OskiVector Destructor. | |
Initialization methods | |
int | initializeValues (OrdinalType length, ScalarType *values, OrdinalType inc=1) |
Initialize using a pointer. | |
OskiVector access methods | |
virtual ScalarType ** | getValues () const |
Returns a pointer to an array of values in the vector. | |
OskiVector Attribute access methods | |
virtual OrdinalType | getLength () const |
Length of vector. | |
virtual OrdinalType | getInc () const |
Increment between entries in the vector, normally = 1. | |
virtual oski_vecview_t | getX_view () const |
Underlying OSKI Vector. |
At this time, the primary function provided by Kokkos::DenseVector is wrapping an oski_vecview_t object and providing access to its entries.
virtual ScalarType** Kokkos::OskiVector< OrdinalType, ScalarType >::getValues | ( | ) | const [inline, virtual] |
Returns a pointer to an array of values in the vector.
Extract a pointer to the values in the vector. Note that the values are not copied by this method. Memory allocation is handled by the vector object itself. The getInc() method should be used to access values, especially if getInc() != 1.
Reimplemented from Kokkos::OskiMultiVector< OrdinalType, ScalarType >.
int Kokkos::OskiVector< OrdinalType, ScalarType >::initializeValues | ( | OrdinalType | length, | |
ScalarType * | values, | |||
OrdinalType | inc = 1 | |||
) | [inline] |
Initialize using a pointer.
This is the only way to initialize a Kokkos::OskiVector object.
length | (In) Length of vector. | |
values | (In) Pointer to values. | |
inc | (In) The increment between two elements in the vector. Typically this value should be set to 1, which is the default value. |