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 345 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 351 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 354 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 360 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 365 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 370 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 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 >::load ( const ValueType  a[])
inline

Definition at line 383 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 389 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 395 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 402 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 408 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 414 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 420 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 426 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 432 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 439 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 445 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 348 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 453 of file Stokhos_TinyVec.hpp.


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