Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > pdl and arrays containing strings

Reply
Thread Tools

pdl and arrays containing strings

 
 
ked
Guest
Posts: n/a
 
      09-28-2005
This one really puzzles me.

How do I convcert a traditional perl array @filelist into a PDL piddle
on which I can index by using the PDL::NiceSlice module. Creating
piddles and NiceSlice works great for everything about piddles of
numbers, but when it comes to text I'm stuck.

print @filelist[0]; returns someting like

/home/user/data/some_datafile.dat


$newfilelist = pdl @filelist;

print $newfilelist(0:2); returns only

[0 0 0]

What am I missing?

Ked

 
Reply With Quote
 
 
 
 
A. Sinan Unur
Guest
Posts: n/a
 
      09-28-2005
"ked" <> wrote in news:1127905199.054144.14730
@g47g2000cwa.googlegroups.com:

> How do I convcert a traditional perl array @filelist into a PDL piddle
> on which I can index by using the PDL::NiceSlice module. Creating
> piddles and NiceSlice works great for everything about piddles of
> numbers, but when it comes to text I'm stuck.


....

> What am I missing?


DESCRIPTION

PDL is the Perl Data Language, a perl extension that is designed for
scientific and bulk numeric data processing and display.

Sinan
--
A. Sinan Unur <>
(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/cl...uidelines.html
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multidimensional arrays and arrays of arrays Philipp Java 21 01-20-2009 08:33 AM
PDL - Errors in PDL::Gaussian, maybe install? Keflavich Perl Misc 0 02-15-2007 08:03 PM
PDL function call failing Mark Ohlund Perl 1 05-02-2004 08:48 AM
linear algebra extensions (similar to PDL) in Ruby? Jose Quesada Ruby 1 09-20-2003 03:29 AM
PDL::Slatec Problem of eigenvalue of Matrix Junmou Zhang Perl 0 07-10-2003 03:10 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57