Actually, I am actually calling new PDL::Char(). I was on mobile earlier and
some details got lost...
________________________________
From: A B <[email protected]>
Sent: Saturday, October 28, 2017 4:01:29 PM
To: Adam Russell
Cc: [email protected]
Subject: Re: [Pdl-general] automatically filling in missing values on old
creation?
I always thought that this is actually default behavior of the pdl constructor.
developer@devbox:~$ perl -e 'use PDL; print pdl([[1],[1,2],[1,2,3],[1]])'
[
[1 0 0]
[1 2 0]
[1 2 3]
[1 0 0]
]
On Sat, Oct 28, 2017 at 12:33 PM, Adam Russell
<[email protected]<mailto:[email protected]>> wrote:
I have a data file in which each row has a variable number of columns. I am
reading this file into a regular Perl array first in order to do some basic
pre-processing of the data. I then am presently adding 0s to pad each row to be
as long as the longest row and so I have a rectangular array. I then pass the
array to pdl() and things seem OK.
Is there a way to do this easier though? To skip writing my own loop to pad the
array first? That is, a way to take the irregularity shaped array and have pdl
make it rectangular for me?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pdl-general mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/pdl-general
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general