Perl 6 - the future is here, just unevenly distributed

IRC log for #pdl, 2014-10-13

| Channels | #pdl index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
13:01 chm joined #pdl
13:03 chm perturbation: The version of imag in PDL::Graphics::Simple is a minimal version to support the examples in the PDL book.
13:03 chm If you have PDL::Graphics::PGPLOT then use that as it has full features.
13:04 chm spintronic: The arguments to rcols include which columns you want.  You would have to give an example but I would be surprised if you needed to write your own.
13:06 chm As always the best support for PDL is via the perldl mailing list: http://pdl.perl.org/?page=mailing-lists
13:06 chm Not everyone has access to #pdl and you'll get more eyes on the question posting to perldl
13:10 chm spintronic: since PDL data does not support non-numeric types directly, you do need to know if your data is numeric.
13:11 chm Usually, in csv data, you do know the column type so you could read a line label and then 3000 columns like this
13:13 chm ($label, $data) = rcols('data.csv', 0, [ 1..3000 ] , { COLSEP => ',' , PERLCOLS => [0] });
21:01 Mithaldu in the hopes that someone is around
21:01 Mithaldu $pVertices->slice( "5:7,($Index0)" ) += $Normal;
21:01 Mithaldu why do i get "Can't modify non-lvalue subroutine call" for that?
21:15 sivoais Mithaldu: that shouldn't ... happen...  But I don't know enough about PDL internals to help. Mailing list? slice() is an lvalue sub in PDL::Lvalue.
21:15 sivoais Maybe there is a new issue with lvalue on your particular setup?
21:17 Mithaldu sivoais: i'm a little busy with other stuff atm and can't minimize it, can you give me a one-liner to test that behavior with, so i can see if it's my system or the specific code i'm working with?
21:18 Mithaldu (also fixed it with tmp stuff that seems to work)
21:23 sivoais Mithaldu: something like:
21:23 sivoais use Test::More; $g = sequence(3,3); $g->slice('0:1,(2)') += 3; is( sequence(3,3)->sum + 2*3 , $g->sum )
21:23 sivoais ?
21:23 sivoais err, the is() should be switched around :-P
21:24 Mithaldu i guess i'm supposed to put use PDL at the start?
21:24 Mithaldu ok, that works
21:24 Mithaldu so it's something in my code
21:26 Mithaldu sivoais: here's the file if you care to have a look: https://gist.github.com/wchristian/bc6d50e6ccf188bba20f
21:48 sivoais Mithaldu: I gave it a try on Perl 5.18.1 osname=linux, PDL 2.007 and it works without the temp vars
21:48 Mithaldu weird

| Channels | #pdl index | Today | | Search | Google Search | Plain-Text | summary