QUDA  0.9.0
Public Member Functions | Public Attributes | List of all members
quda::HMatrix_wrapper< T, Hmat > Struct Template Reference

wrapper class that enables us to write to Hmatrices in packed format More...

#include <quda_matrix.h>

Public Member Functions

__device__ __host__ HMatrix_wrapper (Hmat &mat, int i, int j, int idx)
 
__device__ __host__ void operator= (const complex< T > &a)
 
__device__ __host__ void operator+= (const complex< T > &a)
 

Public Attributes

Hmat & mat
 
const int i
 
const int j
 
const int idx
 

Detailed Description

template<typename T, typename Hmat>
struct quda::HMatrix_wrapper< T, Hmat >

wrapper class that enables us to write to Hmatrices in packed format

Template Parameters
TUnderlying real storage type
HmatThe type of HMatrix we are wrapping

Definition at line 152 of file quda_matrix.h.

Constructor & Destructor Documentation

◆ HMatrix_wrapper()

template<typename T, typename Hmat>
__device__ __host__ quda::HMatrix_wrapper< T, Hmat >::HMatrix_wrapper ( Hmat &  mat,
int  i,
int  j,
int  idx 
)
inline

Definition at line 158 of file quda_matrix.h.

Member Function Documentation

◆ operator+=()

template<typename T, typename Hmat>
__device__ __host__ void quda::HMatrix_wrapper< T, Hmat >::operator+= ( const complex< T > &  a)
inline

◆ operator=()

template<typename T, typename Hmat>
__device__ __host__ void quda::HMatrix_wrapper< T, Hmat >::operator= ( const complex< T > &  a)
inline

Member Data Documentation

◆ i

template<typename T, typename Hmat>
const int quda::HMatrix_wrapper< T, Hmat >::i

◆ idx

template<typename T, typename Hmat>
const int quda::HMatrix_wrapper< T, Hmat >::idx

◆ j

template<typename T, typename Hmat>
const int quda::HMatrix_wrapper< T, Hmat >::j

◆ mat

template<typename T, typename Hmat>
Hmat& quda::HMatrix_wrapper< T, Hmat >::mat

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