Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-07-30 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls