Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: How to shift the columns of a PDL matrix

by Anonymous Monk
on Nov 04, 2016 at 09:42 UTC ( [id://1175292]=note: print w/replies, xml ) Need Help??


in reply to Re: How to shift the columns of a PDL matrix
in thread How to shift the columns of a PDL matrix

since you don't want to grow your matrix, it is even simpler to use rotate to shift your columns and then insert your new data.

$pdl=$pdl->rotate(1); $pdl(0,).=$new_data # your vector.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-24 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found