Stokhos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
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

◆ TinyVec() [1/5]

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.

◆ TinyVec() [2/5]

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.

◆ TinyVec() [3/5]

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.

◆ TinyVec() [4/5]

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.

◆ TinyVec() [5/5]

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

◆ operator=()

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.

◆ load() [1/2]

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.

◆ load() [2/2]

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.

◆ aligned_load()

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.

◆ gather()

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.

◆ scatter()

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.

◆ aligned_scatter()

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.

◆ zero()

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.

◆ plus_equal()

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.

◆ times_equal()

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.

◆ multiply_add()

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.

◆ sum()

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

◆ Num

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.

◆ v

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: