Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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.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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using PDL for rotations
by pc88mxer (Vicar) on Apr 29, 2008 at 16:38 UTC | |
by etj (Priest) on Jun 07, 2022 at 02:53 UTC | |
by Anonymous Monk on Apr 29, 2008 at 19:09 UTC | |
by plobsing (Friar) on Apr 29, 2008 at 20:23 UTC |