#include <Kokkos_DenseVector.hpp>
Public Member Functions | |
Constructors/Destructor | |
DenseVector (void) | |
Default constructor. | |
DenseVector (const DenseVector &source) | |
Copy constructor. | |
virtual | ~DenseVector () |
DenseVector Destructor. | |
Initialization methods | |
int | initializeValues (OrdinalType length, ScalarType *values, OrdinalType inc=1) |
Initialize using a pointer. | |
DenseVector access methods | |
virtual ScalarType * | getValues () const |
Returns a pointer to an array of values in the vector. | |
DenseVector Attribute access methods | |
virtual OrdinalType | getLength () const |
Length of vector. | |
virtual OrdinalType | getInc () const |
Increment between entries in the vector, normally = 1. | |
Public Attributes | |
bool | dataInitialized_ |
OrdinalType | length_ |
OrdinalType | inc_ |
ScalarType * | values_ |
The Kokkos::DenseVector specifies the interface that any vector class interfacing to the Kokkos Operators classes must implement.
At this time, the primary function provided by Kokkos::DenseVector is access to vector data.
virtual ScalarType* Kokkos::DenseVector< 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.
Implements Kokkos::Vector< OrdinalType, ScalarType >.
int Kokkos::DenseVector< OrdinalType, ScalarType >::initializeValues | ( | OrdinalType | length, | |
ScalarType * | values, | |||
OrdinalType | inc = 1 | |||
) | [inline] |
Initialize using a pointer.
This is the only way to initialize a Kokkos::DenseVector 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. |