QUDA  1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
quda::vector_type< scalar, n > Struct Template Reference
Inheritance diagram for quda::vector_type< scalar, n >:
Inheritance graph
[legend]
Collaboration diagram for quda::vector_type< scalar, n >:
Collaboration graph
[legend]

Public Member Functions

__device__ __host__ scalaroperator[] (int i)
 
__device__ __host__ const scalaroperator[] (int i) const
 
__device__ __host__ void operator+= (const vector_type &a)
 
__device__ __host__ void operator= (const vector_type &a)
 
__device__ __host__ vector_type ()
 

Static Public Member Functions

__device__ static __host__ constexpr int size ()
 

Public Attributes

scalar data [n]
 

Detailed Description

template<typename scalar, int n>
struct quda::vector_type< scalar, n >

struct which acts as a wrapper to a vector of data.

Definition at line 34 of file cub_helper.cuh.

Constructor & Destructor Documentation

◆ vector_type()

template<typename scalar, int n>
__device__ __host__ quda::vector_type< scalar, n >::vector_type ( )
inline

Definition at line 47 of file cub_helper.cuh.

Member Function Documentation

◆ operator+=()

template<typename scalar, int n>
__device__ __host__ void quda::vector_type< scalar, n >::operator+= ( const vector_type< scalar, n > &  a)
inline

Definition at line 39 of file cub_helper.cuh.

◆ operator=()

template<typename scalar, int n>
__device__ __host__ void quda::vector_type< scalar, n >::operator= ( const vector_type< scalar, n > &  a)
inline

Definition at line 43 of file cub_helper.cuh.

◆ operator[]() [1/2]

template<typename scalar, int n>
__device__ __host__ scalar& quda::vector_type< scalar, n >::operator[] ( int  i)
inline

Definition at line 36 of file cub_helper.cuh.

◆ operator[]() [2/2]

template<typename scalar, int n>
__device__ __host__ const scalar& quda::vector_type< scalar, n >::operator[] ( int  i) const
inline

Definition at line 37 of file cub_helper.cuh.

◆ size()

template<typename scalar, int n>
__device__ static __host__ constexpr int quda::vector_type< scalar, n >::size ( )
inlinestatic

Definition at line 38 of file cub_helper.cuh.

Member Data Documentation

◆ data

template<typename scalar, int n>
scalar quda::vector_type< scalar, n >::data[n]

Definition at line 35 of file cub_helper.cuh.

Referenced by quda::coarseDslash(), quda::reduceRow(), and quda::zero().


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