Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Counting PDL vectors in a PDL matrix

by mxb (Pilgrim)
on Feb 21, 2018 at 15:25 UTC ( [id://1209666]=note: print w/replies, xml ) Need Help??


in reply to Re: Counting PDL vectors in a PDL matrix
in thread Counting PDL vectors in a PDL matrix

Hi,

Thanks for the quick replies all. Thanks to choroba for linking to uniqvec, which I must have missed during reading the documentation.

Thanks to vr for the good example code, this clears things up a bit. I came to the conclusion that my whole approach was incorrect (which I kind of expected when learning PDL).

I am building up the matrix vector by vector, so if we consider each vector as a single entity (which is what I am doing), then rather than a 2D matrix of vectors, in essence I have a 1D vectors of entities. Therefore, I am choosing to build the lookup table during creation.

Many thanks all.

  • Comment on Re^2: Counting PDL vectors in a PDL matrix

Replies are listed 'Best First'.
Re^3: Counting PDL vectors in a PDL matrix
by etj (Deacon) on May 07, 2022 at 23:08 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found