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

Kokkos::OskiVector: Implementation of the abstract Kokkos:Vector that wraps an oski_vecview_t object with one vector. The class is derived from the Kokkos:OskiMultiVector class. As such it has full access to all of the functionality provided by the Kokkos:OskiMultiVector class. More...

#include <Kokkos_OskiVector.hpp>

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

[legend]
Collaboration diagram for Kokkos::OskiVector< OrdinalType, ScalarType >:
[legend]
List of all members.

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.

Detailed Description

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

Kokkos::OskiVector: Implementation of the abstract Kokkos:Vector that wraps an oski_vecview_t object with one vector. The class is derived from the Kokkos:OskiMultiVector class. As such it has full access to all of the functionality provided by the Kokkos:OskiMultiVector class.

At this time, the primary function provided by Kokkos::DenseVector is wrapping an oski_vecview_t object and providing access to its entries.


Member Function Documentation

template<typename OrdinalType, typename ScalarType>
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 >.

template<typename OrdinalType, typename 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.

Parameters:
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.
Returns:
Integer error code, set to 0 if successful.


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