Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask > Class Template Reference

#include <Stokhos_TinyVec.hpp>

Public Member Functions

KOKKOS_INLINE_FUNCTION TinyVec ()
 
KOKKOS_INLINE_FUNCTION TinyVec (const ValueType a[])
 
template<typename OrdinalType >
KOKKOS_INLINE_FUNCTION TinyVec (const ValueType a[], const OrdinalType idx[])
 
KOKKOS_INLINE_FUNCTION TinyVec (const ValueType a)
 
KOKKOS_INLINE_FUNCTION TinyVec (const TinyVec &tv)
 
KOKKOS_INLINE_FUNCTION TinyVecoperator= (const TinyVec &tv)
 
KOKKOS_INLINE_FUNCTION void load (const ValueType a[])
 
KOKKOS_INLINE_FUNCTION void load (const ValueType a)
 
KOKKOS_INLINE_FUNCTION void aligned_load (const ValueType a[])
 
template<typename OrdinalType >
KOKKOS_INLINE_FUNCTION void gather (const ValueType a[], const OrdinalType idx[])
 
KOKKOS_INLINE_FUNCTION void scatter (ValueType a[]) const
 
KOKKOS_INLINE_FUNCTION void aligned_scatter (ValueType a[]) const
 
KOKKOS_INLINE_FUNCTION void zero ()
 
KOKKOS_INLINE_FUNCTION void plus_equal (const TinyVec &t)
 
KOKKOS_INLINE_FUNCTION void times_equal (const TinyVec &t)
 
KOKKOS_INLINE_FUNCTION void multiply_add (const TinyVec &t1, const TinyVec &t2)
 
KOKKOS_INLINE_FUNCTION ValueType sum () const
 

Static Public Attributes

static const int Num = N
 

Private Attributes

ValueType v [Num]
 

Detailed Description

template<typename ValueType, int N, bool UseIntrinsics, bool Mask = false>
class Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >

Definition at line 313 of file Stokhos_TinyVec.hpp.

Constructor & Destructor Documentation

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::TinyVec ( )
inline

Definition at line 319 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::TinyVec ( const ValueType  a[])
inline

Definition at line 322 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
template<typename OrdinalType >
KOKKOS_INLINE_FUNCTION Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::TinyVec ( const ValueType  a[],
const OrdinalType  idx[] 
)
inline

Definition at line 328 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::TinyVec ( const ValueType  a)
inline

Definition at line 333 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::TinyVec ( const TinyVec< ValueType, N, UseIntrinsics, Mask > &  tv)
inline

Definition at line 338 of file Stokhos_TinyVec.hpp.

Member Function Documentation

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION TinyVec& Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::operator= ( const TinyVec< ValueType, N, UseIntrinsics, Mask > &  tv)
inline

Definition at line 344 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION void Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::load ( const ValueType  a[])
inline

Definition at line 351 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION void Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::load ( const ValueType  a)
inline

Definition at line 357 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION void Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::aligned_load ( const ValueType  a[])
inline

Definition at line 363 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
template<typename OrdinalType >
KOKKOS_INLINE_FUNCTION void Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::gather ( const ValueType  a[],
const OrdinalType  idx[] 
)
inline

Definition at line 370 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION void Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::scatter ( ValueType  a[]) const
inline

Definition at line 376 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION void Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::aligned_scatter ( ValueType  a[]) const
inline

Definition at line 382 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION void Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::zero ( )
inline

Definition at line 388 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION void Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::plus_equal ( const TinyVec< ValueType, N, UseIntrinsics, Mask > &  t)
inline

Definition at line 394 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION void Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::times_equal ( const TinyVec< ValueType, N, UseIntrinsics, Mask > &  t)
inline

Definition at line 400 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION void Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::multiply_add ( const TinyVec< ValueType, N, UseIntrinsics, Mask > &  t1,
const TinyVec< ValueType, N, UseIntrinsics, Mask > &  t2 
)
inline

Definition at line 407 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
KOKKOS_INLINE_FUNCTION ValueType Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::sum ( ) const
inline

Definition at line 413 of file Stokhos_TinyVec.hpp.

Member Data Documentation

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
const int Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::Num = N
static

Definition at line 316 of file Stokhos_TinyVec.hpp.

template<typename ValueType , int N, bool UseIntrinsics, bool Mask = false>
ValueType Stokhos::TinyVec< ValueType, N, UseIntrinsics, Mask >::v[Num]
private

Definition at line 421 of file Stokhos_TinyVec.hpp.


The documentation for this class was generated from the following file: