Kokkos::Vector< OrdinalType, ScalarType > Class Template Reference

Kokkos::Vector: Kokkos vector base class. More...

#include <Kokkos_Vector.hpp>

Inheritance diagram for Kokkos::Vector< OrdinalType, ScalarType >:

[legend]
List of all members.

Public Member Functions

Constructors/Destructor.
virtual ~Vector ()
 Vector Destructor.
Vector access methods.
virtual ScalarType * getValues () const =0
 Returns a pointer to an array of values in the vector.
Vector Attribute access methods.
virtual OrdinalType getLength () const =0
 Length of vector.
virtual OrdinalType getInc () const =0
 Increment between entries in the vector, normally = 1.

Detailed Description

template<typename OrdinalType, typename ScalarType>
class Kokkos::Vector< OrdinalType, ScalarType >

Kokkos::Vector: Kokkos vector base class.

The Kokkos::Vector specifies the interface that any vector class interfacing to the Kokkos Operators classes must implement.

At this time, the primary function provided by Kokkos::Vector is access to vector data.


Member Function Documentation

template<typename OrdinalType, typename ScalarType>
virtual ScalarType* Kokkos::Vector< OrdinalType, ScalarType >::getValues  )  const [pure 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.

Implemented in Kokkos::DenseVector< OrdinalType, ScalarType >.


The documentation for this class was generated from the following file:
Generated on Thu Sep 18 12:43:05 2008 for Kokkos by doxygen 1.3.9.1