Skip to content

Commit

Permalink
Add transpose to tensor3
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloIbannez committed Dec 25, 2023
1 parent 29eb8a5 commit afabc46
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils/tensor.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

};


Expand Down

0 comments on commit afabc46

Please sign in to comment.