High Performance Plasticity  0.5.0
hpp::VecCUDA< T, N > Class Template Reference

#include <tensorCUDA.h>

Collaboration diagram for hpp::VecCUDA< T, N >:

Public Member Functions

__host__ __device__ VecCUDA ()
 
 VecCUDA (const std::vector< T > &in)
 
 VecCUDA (const std::initializer_list< T > &in)
 
T * begin ()
 
T * end ()
 
const T * begin () const
 
const T * end () const
 
__host__ __device__ T & operator() (const unsigned int i)
 
__host__ __device__ T getVal (const unsigned int i) const
 
__host__ __device__ void setVal (const unsigned int i, const T val)
 
__device__ T norm () const
 

Protected Attributes

vals [N]
 

Constructor & Destructor Documentation

template<typename T, unsigned int N>
__host__ __device__ hpp::VecCUDA< T, N >::VecCUDA ( )
inline
template<typename T, unsigned int N>
hpp::VecCUDA< T, N >::VecCUDA ( const std::vector< T > &  in)
template<typename T, unsigned int N>
hpp::VecCUDA< T, N >::VecCUDA ( const std::initializer_list< T > &  in)

Member Function Documentation

template<typename T, unsigned int N>
T* hpp::VecCUDA< T, N >::begin ( )
inline
template<typename T, unsigned int N>
const T* hpp::VecCUDA< T, N >::begin ( ) const
inline
template<typename T, unsigned int N>
T* hpp::VecCUDA< T, N >::end ( )
inline
template<typename T, unsigned int N>
const T* hpp::VecCUDA< T, N >::end ( ) const
inline
template<typename T, unsigned int N>
__host__ __device__ T hpp::VecCUDA< T, N >::getVal ( const unsigned int  i) const
inline
template<typename T, unsigned int N>
__device__ T hpp::VecCUDA< T, N >::norm ( ) const
inline
template<typename T, unsigned int N>
__host__ __device__ T& hpp::VecCUDA< T, N >::operator() ( const unsigned int  i)
inline
template<typename T, unsigned int N>
__host__ __device__ void hpp::VecCUDA< T, N >::setVal ( const unsigned int  i,
const T  val 
)
inline

Member Data Documentation

template<typename T, unsigned int N>
T hpp::VecCUDA< T, N >::vals[N]
protected

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