diff --git a/src/utils/tensor.cuh b/src/utils/tensor.cuh index 0acba92c..488f656a 100644 --- a/src/utils/tensor.cuh +++ b/src/utils/tensor.cuh @@ -40,6 +40,12 @@ namespace uammd{ VECATTR real trace(){return xx+yy+zz;} + VECATTR tensor3 transpose(){ + return tensor3(xx,yx,zx, + xy,yy,zy, + xz,yz,zz); + } + };