Ok, for a certain program I am writing (protein folding), I need to be able perform rotations. I was first planning to do it manually by defining rotation matrices and change of basis matrices etc but I think pdl might save me time. However I am not sure how to use its use PDL::Transform to do so. Here is a piece of code that I was using to experiment with pdl

`use PDL;
use PDL::Transform;
@a = [[1,0,0],[0,1,0],[0,0,1]];
$c= pdl @a;
$e = t_rot(45,45,45);
$c = $e * $c
print $c;
`

I was hoping this would rotate my 1,1,1 vector in all directions by 45 degrees but it gives the error.
"Hash given as a pdl - but not {PDL} key!".
I am not able to understand what this error is for? Also I have seen no tutorial where these rotationa matrices are explained so I would appreciate any help, thanks.

Comment onUsing PDL for rotationsDownloadCode