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 84 of file CudaUtils.h.

Member Function Documentation

◆ operator+=()

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

Definition at line 96 of file CudaUtils.h.

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

96  {
97  this->xx += other.xx;
98  this->xy += other.xy;
99  this->xz += other.xz;
100  this->yx += other.yx;
101  this->yy += other.yy;
102  this->yz += other.yz;
103  this->zx += other.zx;
104  this->zy += other.zy;
105  this->zz += other.zz;
106  return *this;
107  }
BigReal yy
Definition: CudaUtils.h:89
BigReal zz
Definition: CudaUtils.h:93
BigReal yx
Definition: CudaUtils.h:88
BigReal yz
Definition: CudaUtils.h:90
BigReal xx
Definition: CudaUtils.h:85
BigReal zx
Definition: CudaUtils.h:91
BigReal xz
Definition: CudaUtils.h:87
BigReal zy
Definition: CudaUtils.h:92
BigReal xy
Definition: CudaUtils.h:86

Friends And Related Function Documentation

◆ operator+

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

Definition at line 110 of file CudaUtils.h.

110  {
111  cudaTensor t;
112  t.xx = t1.xx + t2.xx;
113  t.xy = t1.xy + t2.xy;
114  t.xz = t1.xz + t2.xz;
115  t.yx = t1.yx + t2.yx;
116  t.yy = t1.yy + t2.yy;
117  t.yz = t1.yz + t2.yz;
118  t.zx = t1.zx + t2.zx;
119  t.zy = t1.zy + t2.zy;
120  t.zz = t1.zz + t2.zz;
121  return t;
122  }
BigReal yy
Definition: CudaUtils.h:89
BigReal zz
Definition: CudaUtils.h:93
BigReal yx
Definition: CudaUtils.h:88
BigReal yz
Definition: CudaUtils.h:90
BigReal xx
Definition: CudaUtils.h:85
BigReal zx
Definition: CudaUtils.h:91
BigReal xz
Definition: CudaUtils.h:87
BigReal zy
Definition: CudaUtils.h:92
BigReal xy
Definition: CudaUtils.h:86

Member Data Documentation

◆ xx

BigReal cudaTensor::xx

Definition at line 85 of file CudaUtils.h.

Referenced by operator+=().

◆ xy

BigReal cudaTensor::xy

Definition at line 86 of file CudaUtils.h.

Referenced by operator+=().

◆ xz

BigReal cudaTensor::xz

Definition at line 87 of file CudaUtils.h.

Referenced by operator+=().

◆ yx

BigReal cudaTensor::yx

Definition at line 88 of file CudaUtils.h.

Referenced by operator+=().

◆ yy

BigReal cudaTensor::yy

Definition at line 89 of file CudaUtils.h.

Referenced by operator+=().

◆ yz

BigReal cudaTensor::yz

Definition at line 90 of file CudaUtils.h.

Referenced by operator+=().

◆ zx

BigReal cudaTensor::zx

Definition at line 91 of file CudaUtils.h.

Referenced by operator+=().

◆ zy

BigReal cudaTensor::zy

Definition at line 92 of file CudaUtils.h.

Referenced by operator+=().

◆ zz

BigReal cudaTensor::zz

Definition at line 93 of file CudaUtils.h.

Referenced by operator+=().


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