Perl 6 - the future is here, just unevenly distributed

IRC log for #pdl, 2012-12-05

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

All times shown according to UTC.

Time Nick Message
06:26 Molaf joined #pdl
12:59 Mithaldu how do i get a single value out of a piddle?
15:06 sivoais Mithaldu: use ->at($x, $y, $z, ...) (c.f. PDL::Core)
15:07 Mithaldu yeah, i went digging a bit and found that too, thanks in any case :)
15:07 Mithaldu one thing i believe doesn't exist though is getting a slice starting at a certain index, with a certain length. right?
15:10 sivoais do you mean flattening it first or just a rect out of the piddle?
15:10 sivoais sequence(10,10)->slice('0:2,1:2'); # gives a 2 x 3 piddle
15:10 sivoais err, a 3x2 piddle
15:11 Mithaldu i mean i have a pdl with 280000 values
15:11 Mithaldu i want 400 values, starting at 56000
15:14 sivoais I'm not sure if there is one that takes a length, but rather, only an absolute value.
15:17 Mithaldu yeah, that's what i've seen so far
15:18 sivoais I guess something like : -(~/zaki_tmp/Downloads)-> sudo dpkg -i cupswrapperMFC7340-2.0.2-1.i386.deb brmfc7340lpr-2.0.2-1.i386.deb
15:18 sivoais [sudo] password for zaki:
15:18 sivoais whoops
15:18 sivoais Selecting previously unselected package cupswrappermfc7340.
15:18 sivoais $start = 10; $len = 4; sequence(1000)->slice("$start:@{[$start+$len-1]}")
15:19 Mithaldu haha
15:19 Mithaldu that's what i'm already doing :)
15:24 sivoais perhaps make a sub subpdl($offset, $length) { ... } and pass that in to ->slice()
15:27 Mithaldu it's alright, i was mostly just curious :D

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