Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: RFC: 100 PDL Exercises (ported from numpy)

by vr (Curate)
on May 04, 2018 at 10:51 UTC ( #1214046=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    pdl> $x = sequence 2,2,3     # "2x2 planar RGB" image, 4 unique colors
    pdl> $x = $x-> glue( 0, $x ) # "4x2 RGB" image, 4 unique colors
    ...
    
    pdl> p $x-> clump(2)-> transpose-> uniqvec-> getdim( 1 )
    5
    
  2. or download this
    use strict;
    use warnings;
    ...
    
    >perl pdl180504.pl
    1627779072.000000
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1214046]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2020-06-01 19:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (10 votes). Check out past polls.

    Notices?