Angharad has asked for the wisdom of the Perl Monks concerning the following question:
I would like to change this so its a 7 column by 34 row matrix, with the above being at the top of the matrix and the remaining rows being populated entirely by zeros. I then would like this all to be placed in another PDL matrix so that I can do some maths on it.[ [ 2.7650514 0 0 0 0 + 0 0] [ 0 1.2905497 0 0 0 + 0 0] [ 0 0 0.54930597 0 0 + 0 0] [ 0 0 0 0.23264228 0 + 0 0] [ 0 0 0 0 0.19463077 + 0 0] [ 0 0 0 0 0 0.16669 +291 0] [ 0 0 0 0 0 + 0 0.095157451] ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PDL matrix ... increasing column length
by g0n (Priest) on Sep 09, 2005 at 12:59 UTC | |
|
Re: PDL matrix ... increasing column length
by newroz (Monk) on Sep 09, 2005 at 14:05 UTC |