QUDA  v1.1.0
A library for QCD on GPUs
Public Member Functions | Public Attributes | List of all members
quda::HMatrix< T, N > Class Template Reference

Specialized container for Hermitian matrices (e.g., used for wrapping clover matrices) More...

#include <quda_matrix.h>

Public Member Functions

__device__ __host__ HMatrix ()
 
__device__ __host__ HMatrix (const HMatrix< T, N > &a)
 
__device__ __host__ HMatrix (const T data_[])
 
__device__ __host__ complex< T > const operator() (int i, int j) const
 
__device__ __host__ HMatrix_wrapper< T, HMatrix< T, N > > operator() (int i, int j)
 
template<class U >
__device__ __host__ void operator= (const HMatrix< U, N > &b)
 
template<typename S >
__device__ __host__ HMatrix (const clover_wrapper< T, S > &s)
 
template<typename S >
__device__ __host__ void operator= (const clover_wrapper< T, S > &s)
 
__device__ __host__ HMatrix< T, N > square () const
 Hermitian matrix square. More...
 
__device__ __host__ T max () const
 Compute the absolute max element of the Hermitian matrix. More...
 
__device__ __host__ void print () const
 

Public Attributes

data [N *N]
 

Detailed Description

template<class T, int N>
class quda::HMatrix< T, N >

Specialized container for Hermitian matrices (e.g., used for wrapping clover matrices)

Definition at line 281 of file quda_matrix.h.

Constructor & Destructor Documentation

◆ HMatrix() [1/4]

template<class T , int N>
__device__ __host__ quda::HMatrix< T, N >::HMatrix ( )
inline

Definition at line 302 of file quda_matrix.h.

◆ HMatrix() [2/4]

template<class T , int N>
__device__ __host__ quda::HMatrix< T, N >::HMatrix ( const HMatrix< T, N > &  a)
inline

Definition at line 307 of file quda_matrix.h.

◆ HMatrix() [3/4]

template<class T , int N>
__device__ __host__ quda::HMatrix< T, N >::HMatrix ( const T  data_[])
inline

Definition at line 312 of file quda_matrix.h.

◆ HMatrix() [4/4]

template<typename T , int N>
template<typename S >
__device__ __host__ quda::HMatrix< T, N >::HMatrix ( const clover_wrapper< T, S > &  s)
inline

Definition at line 68 of file clover_field_order.h.

Member Function Documentation

◆ max()

template<class T , int N>
__device__ __host__ T quda::HMatrix< T, N >::max ( ) const
inline

Compute the absolute max element of the Hermitian matrix.

Returns
Absolute Max element

Definition at line 376 of file quda_matrix.h.

◆ operator()() [1/2]

template<class T , int N>
__device__ __host__ HMatrix_wrapper<T,HMatrix<T,N> > quda::HMatrix< T, N >::operator() ( int  i,
int  j 
)
inline

Definition at line 328 of file quda_matrix.h.

◆ operator()() [2/2]

template<class T , int N>
__device__ __host__ complex<T> const quda::HMatrix< T, N >::operator() ( int  i,
int  j 
) const
inline

Definition at line 317 of file quda_matrix.h.

◆ operator=() [1/2]

template<typename T , int N>
template<typename S >
__device__ __host__ void quda::HMatrix< T, N >::operator= ( const clover_wrapper< T, S > &  s)
inline

Definition at line 62 of file clover_field_order.h.

◆ operator=() [2/2]

template<class T , int N>
template<class U >
__device__ __host__ void quda::HMatrix< T, N >::operator= ( const HMatrix< U, N > &  b)
inline

Definition at line 333 of file quda_matrix.h.

◆ print()

template<class T , int N>
__device__ __host__ void quda::HMatrix< T, N >::print ( ) const
inline

Definition at line 385 of file quda_matrix.h.

◆ square()

template<class T , int N>
__device__ __host__ HMatrix<T,N> quda::HMatrix< T, N >::square ( ) const
inline

Hermitian matrix square.

Returns
Matrix square

Definition at line 348 of file quda_matrix.h.

Member Data Documentation

◆ data

template<class T , int N>
T quda::HMatrix< T, N >::data[N *N]

Definition at line 300 of file quda_matrix.h.


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