Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: reading files in PDL matrix

by SimonClinch (Chaplain)
on Aug 15, 2005 at 11:22 UTC ( #483808=note: print w/ replies, xml ) Need Help??


in reply to reading files in PDL matrix

I think the more appropriate module is PDL::Matrix

use PDL::Matrix; open my $fh, "<file" or die $!; my (@left, @right) = ((),()); while( <$fh> ) { chop; my ( $left, $right ) = split ','; push @left, $left; push @right, $right; } my $m = PDL::Matrix->pdl([\@left,\@right]);

One world, one people


Comment on Re: reading files in PDL matrix
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2015-07-03 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (51 votes), past polls