QUDA  v1.1.0
A library for QCD on GPUs
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
quda::vector_type< scalar, n > Struct Template Reference

#include <float_vector.h>

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__ vector_type ()
 

Static Public Member Functions

__device__ static constexpr __host__ 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 383 of file float_vector.h.

Constructor & Destructor Documentation

◆ vector_type()

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

Definition at line 393 of file float_vector.h.

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 388 of file float_vector.h.

◆ operator[]() [1/2]

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

Definition at line 385 of file float_vector.h.

◆ 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 386 of file float_vector.h.

◆ size()

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

Definition at line 387 of file float_vector.h.

Member Data Documentation

◆ data

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

Definition at line 384 of file float_vector.h.


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