Time |
Nick |
Message |
02:49 |
|
cbmuser joined #pdl |
03:29 |
|
cbmuser joined #pdl |
16:18 |
vicash |
hi.. is there a command or a PDL perldoc page which lists all the names of the PDL functions available in the PDL distribution.. it is quite painful having to open one manpage after another to find the function I am looking for.. |
16:18 |
vicash |
i would like to list all the functions at one shot and then find the name of the one I think does what it means and then read the doc for that |
16:19 |
vicash |
cool apropos PDL does it ! nice |
18:52 |
vicash |
hi is there a function to delete a column in a PDL ? i have sequence(100, 4) as my pDL for example and I want to remove say the 3rd column .. how do I do it ? |
19:22 |
sivoais |
vicash: you can use ->dice() |
19:22 |
sivoais |
sequence(10,4)->dice([0..1, 3..9], X)->copy |
19:25 |
sivoais |
vicash: there's also dice_axis |
19:26 |
vicash |
cool. i used dog to convert into an array of PDLs and then remove the PDL i did not want and then glued them back in one by one which sucks |
19:26 |
vicash |
i will try dice |
19:31 |
sivoais |
$g = sequence(10,4); $col = sequence( $g->dim(0) ); $g->dice_axis( 0, $col->where( $col != 2 ) ) |
20:43 |
vicash |
sivoais: dice does it the way i want it |