NAMD
Public Member Functions | Public Attributes | Friends | List of all members
cudaTensor Struct Reference

#include <CudaUtils.h>

Public Member Functions

__forceinline__ __device__ cudaTensoroperator+= (const cudaTensor &other)
 

Public Attributes

BigReal xx
 
BigReal xy
 
BigReal xz
 
BigReal yx
 
BigReal yy
 
BigReal yz
 
BigReal zx
 
BigReal zy
 
BigReal zz
 

Friends

__forceinline__ __device__ friend cudaTensor operator+ (const cudaTensor &t1, const cudaTensor &t2)
 

Detailed Description

Definition at line 75 of file CudaUtils.h.

Member Function Documentation

◆ operator+=()

__forceinline__ __device__ cudaTensor& cudaTensor::operator+= ( const cudaTensor other)
inline

Definition at line 87 of file CudaUtils.h.

References xx, xy, xz, yx, yy, yz, zx, zy, and zz.

87  {
88  this->xx += other.xx;
89  this->xy += other.xy;
90  this->xz += other.xz;
91  this->yx += other.yx;
92  this->yy += other.yy;
93  this->yz += other.yz;
94  this->zx += other.zx;
95  this->zy += other.zy;
96  this->zz += other.zz;
97  return *this;
98  }
BigReal yy
Definition: CudaUtils.h:80
BigReal zz
Definition: CudaUtils.h:84
BigReal yx
Definition: CudaUtils.h:79
BigReal yz
Definition: CudaUtils.h:81
BigReal xx
Definition: CudaUtils.h:76
BigReal zx
Definition: CudaUtils.h:82
BigReal xz
Definition: CudaUtils.h:78
BigReal zy
Definition: CudaUtils.h:83
BigReal xy
Definition: CudaUtils.h:77

Friends And Related Function Documentation

◆ operator+

__forceinline__ __device__ friend cudaTensor operator+ ( const cudaTensor t1,
const cudaTensor t2 
)
friend

Definition at line 101 of file CudaUtils.h.

101  {
102  cudaTensor t;
103  t.xx = t1.xx + t2.xx;
104  t.xy = t1.xy + t2.xy;
105  t.xz = t1.xz + t2.xz;
106  t.yx = t1.yx + t2.yx;
107  t.yy = t1.yy + t2.yy;
108  t.yz = t1.yz + t2.yz;
109  t.zx = t1.zx + t2.zx;
110  t.zy = t1.zy + t2.zy;
111  t.zz = t1.zz + t2.zz;
112  return t;
113  }
BigReal yy
Definition: CudaUtils.h:80
BigReal zz
Definition: CudaUtils.h:84
BigReal yx
Definition: CudaUtils.h:79
BigReal yz
Definition: CudaUtils.h:81
BigReal xx
Definition: CudaUtils.h:76
BigReal zx
Definition: CudaUtils.h:82
BigReal xz
Definition: CudaUtils.h:78
BigReal zy
Definition: CudaUtils.h:83
BigReal xy
Definition: CudaUtils.h:77

Member Data Documentation

◆ xx

BigReal cudaTensor::xx

Definition at line 76 of file CudaUtils.h.

Referenced by operator+=().

◆ xy

BigReal cudaTensor::xy

Definition at line 77 of file CudaUtils.h.

Referenced by operator+=().

◆ xz

BigReal cudaTensor::xz

Definition at line 78 of file CudaUtils.h.

Referenced by operator+=().

◆ yx

BigReal cudaTensor::yx

Definition at line 79 of file CudaUtils.h.

Referenced by operator+=().

◆ yy

BigReal cudaTensor::yy

Definition at line 80 of file CudaUtils.h.

Referenced by operator+=().

◆ yz

BigReal cudaTensor::yz

Definition at line 81 of file CudaUtils.h.

Referenced by operator+=().

◆ zx

BigReal cudaTensor::zx

Definition at line 82 of file CudaUtils.h.

Referenced by operator+=().

◆ zy

BigReal cudaTensor::zy

Definition at line 83 of file CudaUtils.h.

Referenced by operator+=().

◆ zz

BigReal cudaTensor::zz

Definition at line 84 of file CudaUtils.h.

Referenced by operator+=().


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