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, true > Class Template Reference

#include <Stokhos_TinyVec.hpp>

Public Member Functions

KOKKOS_INLINE_FUNCTION TinyVec (int size)
 
KOKKOS_INLINE_FUNCTION TinyVec (const ValueType a[], int size)
 
template<typename OrdinalType >
KOKKOS_INLINE_FUNCTION TinyVec (const ValueType a[], const OrdinalType idx[], int size)
 
KOKKOS_INLINE_FUNCTION TinyVec (const ValueType a, int size)
 
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]
 
int sz
 

Detailed Description

template<typename ValueType, int N, bool UseIntrinsics>
class Stokhos::TinyVec< ValueType, N, UseIntrinsics, true >

Definition at line 457 of file Stokhos_TinyVec.hpp.

Constructor & Destructor Documentation

◆ TinyVec() [1/5]

template<typename ValueType , int N, bool UseIntrinsics>
KOKKOS_INLINE_FUNCTION Stokhos::TinyVec< ValueType, N, UseIntrinsics, true >::TinyVec ( int size)
inline

Definition at line 463 of file Stokhos_TinyVec.hpp.

◆ TinyVec() [2/5]

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

Definition at line 466 of file Stokhos_TinyVec.hpp.

◆ TinyVec() [3/5]

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

Definition at line 473 of file Stokhos_TinyVec.hpp.

◆ TinyVec() [4/5]

template<typename ValueType , int N, bool UseIntrinsics>
KOKKOS_INLINE_FUNCTION Stokhos::TinyVec< ValueType, N, UseIntrinsics, true >::TinyVec ( const ValueType a,
int size )
inline

Definition at line 479 of file Stokhos_TinyVec.hpp.

◆ TinyVec() [5/5]

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

Definition at line 485 of file Stokhos_TinyVec.hpp.

Member Function Documentation

◆ operator=()

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

Definition at line 492 of file Stokhos_TinyVec.hpp.

◆ load() [1/2]

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

Definition at line 500 of file Stokhos_TinyVec.hpp.

◆ load() [2/2]

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

Definition at line 506 of file Stokhos_TinyVec.hpp.

◆ aligned_load()

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

Definition at line 512 of file Stokhos_TinyVec.hpp.

◆ gather()

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

Definition at line 519 of file Stokhos_TinyVec.hpp.

◆ scatter()

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

Definition at line 525 of file Stokhos_TinyVec.hpp.

◆ aligned_scatter()

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

Definition at line 531 of file Stokhos_TinyVec.hpp.

◆ zero()

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

Definition at line 537 of file Stokhos_TinyVec.hpp.

◆ plus_equal()

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

Definition at line 543 of file Stokhos_TinyVec.hpp.

◆ times_equal()

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

Definition at line 549 of file Stokhos_TinyVec.hpp.

◆ multiply_add()

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

Definition at line 556 of file Stokhos_TinyVec.hpp.

◆ sum()

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

Definition at line 562 of file Stokhos_TinyVec.hpp.

Member Data Documentation

◆ Num

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

Definition at line 460 of file Stokhos_TinyVec.hpp.

◆ v

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

Definition at line 570 of file Stokhos_TinyVec.hpp.

◆ sz

template<typename ValueType , int N, bool UseIntrinsics>
int Stokhos::TinyVec< ValueType, N, UseIntrinsics, true >::sz
private

Definition at line 571 of file Stokhos_TinyVec.hpp.


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