#include <Tensor.h>
Definition at line 15 of file Tensor.h.
|
|
Definition at line 21 of file Tensor.h.
|
|
|
Definition at line 25 of file Tensor.h. References xx, xy, xz, yx, yy, yz, zx, zy, and zz. 00025 {
00026 xx = t2.xx; xy = t2.xy; xz = t2.xz;
00027 yx = t2.yx; yy = t2.yy; yz = t2.yz;
00028 zx = t2.zx; zy = t2.zy; zz = t2.zz;
00029 }
|
|
|
Definition at line 61 of file Tensor.h. 00061 { }
|
|
|
Definition at line 37 of file Tensor.h. References Vector::x, xx, xy, xz, Vector::y, yx, yy, yz, Vector::z, zx, zy, and zz. Referenced by Controller::berendsenPressure(), ComputeGridForce::doForce(), GridforceGrid::get_box(), Controller::langevinPiston1(), Controller::langevinPiston2(), and Controller::receivePressure(). 00037 {
00038 Tensor tmp;
00039 tmp.xx = v1.x; tmp.xy = 0; tmp.xz = 0;
00040 tmp.yx = 0; tmp.yy = v1.y; tmp.yz = 0;
00041 tmp.zx = 0; tmp.zy = 0; tmp.zz = v1.z;
00042 return tmp;
00043 }
|
|
|
Definition at line 31 of file Tensor.h. Referenced by Controller::berendsenPressure(), Controller::Controller(), Controller::langevinPiston1(), Controller::langevinPiston2(), and Controller::receivePressure().
|
|
|
Definition at line 89 of file Tensor.h. 00089 {
00090 xx *= r2; xy *= r2; xz *= r2;
00091 yx *= r2; yy *= r2; yz *= r2;
00092 zx *= r2; zy *= r2; zz *= r2;
00093 return *this;
00094 }
|
|
|
Definition at line 75 of file Tensor.h. References xx, xy, xz, yx, yy, yz, zx, zy, and zz. 00075 {
00076 xx += t2.xx; xy += t2.xy; xz += t2.xz;
00077 yx += t2.yx; yy += t2.yy; yz += t2.yz;
00078 zx += t2.zx; zy += t2.zy; zz += t2.zz;
00079 return *this;
00080 }
|
|
|
Definition at line 82 of file Tensor.h. References xx, xy, xz, yx, yy, yz, zx, zy, and zz. 00082 {
00083 xx -= t2.xx; xy -= t2.xy; xz -= t2.xz;
00084 yx -= t2.yx; yy -= t2.yy; yz -= t2.yz;
00085 zx -= t2.zx; zy -= t2.zy; zz -= t2.zz;
00086 return *this;
00087 }
|
|
|
Definition at line 96 of file Tensor.h. 00096 {
00097 xx /= r2; xy /= r2; xz /= r2;
00098 yx /= r2; yy /= r2; yz /= r2;
00099 zx /= r2; zy /= r2; zz /= r2;
00100 return *this;
00101 }
|
|
|
Definition at line 70 of file Tensor.h.
|
|
|
Definition at line 63 of file Tensor.h. References xx, xy, xz, yx, yy, yz, zx, zy, and zz. 00063 {
00064 xx = t2.xx; xy = t2.xy; xz = t2.xz;
00065 yx = t2.yx; yy = t2.yy; yz = t2.yz;
00066 zx = t2.zx; zy = t2.zy; zz = t2.zz;
00067 return *this;
00068 }
|
|
||||||||||||||||
|
Definition at line 255 of file Tensor.h. References Vector::x, xx, xy, xz, Vector::y, yx, yy, yz, Vector::z, zx, zy, and zz. Referenced by Sequencer::submitHalfstep(), Sequencer::submitMinimizeReductions(), and Sequencer::submitReductions(). 00255 {
00256 xx += v1.x * v2.x * scale;
00257 xy += v1.x * v2.y * scale;
00258 xz += v1.x * v2.z * scale;
00259 yx += v1.y * v2.x * scale;
00260 yy += v1.y * v2.y * scale;
00261 yz += v1.y * v2.z * scale;
00262 zx += v1.z * v2.x * scale;
00263 zy += v1.z * v2.y * scale;
00264 zz += v1.z * v2.z * scale;
00265 }
|
|
||||||||||||
|
Definition at line 45 of file Tensor.h. References Vector::x, xx, xy, xz, Vector::y, yx, yy, yz, Vector::z, zx, zy, and zz. Referenced by Controller::Controller(). 00045 {
00046 Tensor tmp;
00047 tmp.xx = v1.x; tmp.xy = v2.x; tmp.xz = v2.y;
00048 tmp.yx = v2.x; tmp.yy = v1.y; tmp.yz = v2.z;
00049 tmp.zx = v2.y; tmp.zy = v2.z; tmp.zz = v1.z;
00050 return tmp;
00051 }
|
|
||||||||||||
|
Definition at line 53 of file Tensor.h. References Vector::x, xx, xy, xz, Vector::y, yx, yy, yz, Vector::z, zx, zy, and zz. 00053 {
00054 Tensor tmp;
00055 tmp.xx = v1.x; tmp.xy = v2.x; tmp.xz = v2.y;
00056 tmp.yx = 0; tmp.yy = v1.y; tmp.yz = v2.z;
00057 tmp.zx = 0; tmp.zy = 0; tmp.zz = v1.z;
00058 return tmp;
00059 }
|
|
|
Definition at line 194 of file Tensor.h.
|
|
|
Definition at line 198 of file Tensor.h.
|
|
||||||||||||
|
Definition at line 160 of file Tensor.h. 00160 {
00161 Vector tmp;
00162 tmp.x = t2.xx * v1.x + t2.yx * v1.y + t2.zx * v1.z;
00163 tmp.y = t2.xy * v1.x + t2.yy * v1.y + t2.zy * v1.z;
00164 tmp.z = t2.xz * v1.x + t2.yz * v1.y + t2.zz * v1.z;
00165 return tmp;
00166 }
|
|
||||||||||||
|
Definition at line 152 of file Tensor.h. 00152 {
00153 Vector tmp;
00154 tmp.x = t1.xx * v2.x + t1.xy * v2.y + t1.xz * v2.z;
00155 tmp.y = t1.yx * v2.x + t1.yy * v2.y + t1.yz * v2.z;
00156 tmp.z = t1.zx * v2.x + t1.zy * v2.y + t1.zz * v2.z;
00157 return tmp;
00158 }
|
|
||||||||||||
|
Definition at line 140 of file Tensor.h. 00140 {
00141 Tensor tmp(t1);
00142 tmp *= r2;
00143 return tmp;
00144 }
|
|
||||||||||||
|
Definition at line 134 of file Tensor.h. 00134 {
00135 Tensor tmp(t2);
00136 tmp *= r1;
00137 return tmp;
00138 }
|
|
||||||||||||
|
Definition at line 112 of file Tensor.h. 00112 {
00113 return ( ! ( t1 == t2 ) );
00114 }
|
|
||||||||||||
|
Definition at line 116 of file Tensor.h. 00116 {
00117 Tensor tmp(t1);
00118 tmp += t2;
00119 return tmp;
00120 }
|
|
|
Definition at line 128 of file Tensor.h. 00128 {
00129 Tensor tmp(t1);
00130 tmp *= -1.0;
00131 return tmp;
00132 }
|
|
||||||||||||
|
Definition at line 122 of file Tensor.h. 00122 {
00123 Tensor tmp(t1);
00124 tmp -= t2;
00125 return tmp;
00126 }
|
|
||||||||||||
|
Definition at line 146 of file Tensor.h. 00146 {
00147 Tensor tmp(t1);
00148 tmp /= r2;
00149 return tmp;
00150 }
|
|
||||||||||||
|
Definition at line 105 of file Tensor.h. 00105 {
00106 return (
00107 t1.xx == t2.xx && t1.xy == t2.xy && t1.xz == t2.xz &&
00108 t1.yx == t2.yx && t1.yy == t2.yy && t1.yz == t2.yz &&
00109 t1.zx == t2.zx && t1.zy == t2.zy && t1.zz == t2.zz );
00110 }
|
|
||||||||||||
|
Definition at line 241 of file Tensor.h. 00241 {
00242 Tensor tmp;
00243 tmp.xx = v1.x * v2.x;
00244 tmp.xy = v1.x * v2.y;
00245 tmp.xz = v1.x * v2.z;
00246 tmp.yx = v1.y * v2.x;
00247 tmp.yy = v1.y * v2.y;
00248 tmp.yz = v1.y * v2.z;
00249 tmp.zx = v1.z * v2.x;
00250 tmp.zy = v1.z * v2.y;
00251 tmp.zz = v1.z * v2.z;
00252 return tmp;
00253 }
|
|
|
Definition at line 178 of file Tensor.h. 00178 {
00179 Tensor tmp;
00180 tmp.xx = t1.xx; tmp.xy = 0.5*(t1.xy+t1.yx); tmp.xz = 0.5*(t1.xz+t1.zx);
00181 tmp.yx = tmp.xy; tmp.yy = t1.yy; tmp.yz = 0.5*(t1.yz+t1.zy);
00182 tmp.zx = tmp.xz; tmp.zy = tmp.yz; tmp.zz = t1.zz;
00183 return tmp;
00184 }
|
|
|
Definition at line 202 of file Tensor.h.
|
|
|
Definition at line 170 of file Tensor.h. 00170 {
00171 Tensor tmp;
00172 tmp.xx = t1.xx; tmp.yx = t1.xy; tmp.zx = t1.xz;
00173 tmp.xy = t1.yx; tmp.yy = t1.yy; tmp.zy = t1.yz;
00174 tmp.xz = t1.zx; tmp.yz = t1.zy; tmp.zz = t1.zz;
00175 return tmp;
00176 }
|
|
|
Definition at line 186 of file Tensor.h. 00186 {
00187 Tensor tmp;
00188 tmp.xx = t1.xx; tmp.xy = 0.5*(t1.xy+t1.yx); tmp.xz = 0.5*(t1.xz+t1.zx);
00189 tmp.yx = 0; tmp.yy = t1.yy; tmp.yz = 0.5*(t1.yz+t1.zy);
00190 tmp.zx = 0; tmp.zy = 0; tmp.zz = t1.zz;
00191 return tmp;
00192 }
|
|
|
Definition at line 17 of file Tensor.h. Referenced by Controller::berendsenPressure(), diagonal(), ComputeFullDirect::doWork(), identity(), GridforceGrid::initialize(), Sequencer::langevinPiston(), Controller::langevinPiston1(), Controller::langevinPiston2(), operator+=(), operator-=(), operator<<(), operator=(), outer(), outerAdd(), HomePatch::rattle1(), symmetric(), Tensor(), and triangular(). |
|
|
Definition at line 17 of file Tensor.h. Referenced by diagonal(), ComputeFullDirect::doWork(), GridforceGrid::initialize(), operator+=(), operator-=(), operator<<(), operator=(), outer(), outerAdd(), symmetric(), Tensor(), and triangular(). |
|
|
Definition at line 17 of file Tensor.h. Referenced by diagonal(), ComputeFullDirect::doWork(), GridforceGrid::initialize(), operator+=(), operator-=(), operator<<(), operator=(), outer(), outerAdd(), symmetric(), Tensor(), and triangular(). |
|
|
Definition at line 18 of file Tensor.h. Referenced by diagonal(), ComputeFullDirect::doWork(), GridforceGrid::initialize(), operator+=(), operator-=(), operator<<(), operator=(), outer(), outerAdd(), symmetric(), Tensor(), and triangular(). |
|
|
Definition at line 18 of file Tensor.h. Referenced by Controller::berendsenPressure(), diagonal(), ComputeFullDirect::doWork(), identity(), GridforceGrid::initialize(), Sequencer::langevinPiston(), Controller::langevinPiston1(), Controller::langevinPiston2(), operator+=(), operator-=(), operator<<(), operator=(), outer(), outerAdd(), HomePatch::rattle1(), symmetric(), Tensor(), and triangular(). |
|
|
Definition at line 18 of file Tensor.h. Referenced by diagonal(), ComputeFullDirect::doWork(), GridforceGrid::initialize(), operator+=(), operator-=(), operator<<(), operator=(), outer(), outerAdd(), symmetric(), Tensor(), and triangular(). |
|
|
Definition at line 19 of file Tensor.h. Referenced by diagonal(), ComputeFullDirect::doWork(), GridforceGrid::initialize(), operator+=(), operator-=(), operator<<(), operator=(), outer(), outerAdd(), symmetric(), Tensor(), and triangular(). |
|
|
Definition at line 19 of file Tensor.h. Referenced by diagonal(), ComputeFullDirect::doWork(), GridforceGrid::initialize(), operator+=(), operator-=(), operator<<(), operator=(), outer(), outerAdd(), symmetric(), Tensor(), and triangular(). |
|
|
Definition at line 19 of file Tensor.h. Referenced by Controller::berendsenPressure(), diagonal(), ComputeFullDirect::doWork(), identity(), GridforceGrid::initialize(), Sequencer::langevinPiston(), Controller::langevinPiston1(), Controller::langevinPiston2(), operator+=(), operator-=(), operator<<(), operator=(), outer(), outerAdd(), HomePatch::rattle1(), symmetric(), Tensor(), and triangular(). |
1.3.9.1