Tried it (in other machine, same config). $w->rint does the same as rint( $w) :

C:\>perldl
perlDL shell v1.35
 PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file
 'COPYING' in the PDL distribution. This is free software and you
 are welcome to redistribute it under certain conditions, see
 the same file for details.
ReadLines, NiceSlice, MultiLines  enabled
Reading PDL/default.pdl...
Unable to find PDL/pdldoc.db in C:/Perl/site/lib:C:/Perl/lib:.
Type 'demo' for online demos
Loaded PDL v2.4.4 (supports bad values)

Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended)

perldl> $w= (sequence 10)/4;
perldl> print $w
[0 0.25 0.5 0.75 1 1.25 1.5 1.75 2 2.25]

perldl> print rint $w;
[6015 6015 6015 6015 6015 6015 6015 6015 6015 6015]

perldl>  print rint (pdl(1));
6015

On Mon, Feb 23, 2009 at 1:41 AM, Douglas Hunt <[email protected]> wrote:
> Hi Hernan:  Just out of curiosity, if you are ever in a position to run
> tests under the buggy PDL again, what happens if you try
> $w->rint instead of rint ($w) ?
>
> I've noticed that sometimes the type of the PDL is misinterpreted and you
> get funny results unless you use the -> notation.
>
> Regards,
>
>  Doug


-- 
Hernán J. González
http://hjg.com.ar/

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to