Symmetric traceless rank-2 tensor in 3D. More...
#include <tensor3.h>
Public Member Functions | |
__hostanddev__ scalar & | operator[] (int k) |
__hostanddev__ const scalar & | operator[] (int k) const |
__hostanddev__ scalar & | xy () |
__hostanddev__ scalar & | yz () |
__hostanddev__ scalar & | zx () |
__hostanddev__ scalar & | xxr () |
xxr = x^2 - r^2/3 | |
__hostanddev__ scalar & | yyr () |
yyr = y^2-r^2/3 | |
__hostanddev__ const scalar & | xy () const |
__hostanddev__ const scalar & | yz () const |
__hostanddev__ const scalar & | zx () const |
__hostanddev__ const scalar & | xxr () const |
__hostanddev__ const scalar & | yyr () const |
__hostanddev__ | tensor3 (scalar a=0, scalar b=0, scalar c=0, scalar d=0, scalar e=0) |
tensor3 (std::vector< scalar > a) | |
Symmetric traceless rank-2 tensor in 3D.