Hmmm. Kåre pointed out that this worked only for equal size 1D piddles - and lo and behold, that was what I had used it for!

Ok. So I owe a better solution, it doesn't have as good a mnemonic perhaps but it should work:

  $x = $a->glue(0, @piddles)

should work and with a bit of care should work in ND space too..

                        Cheers,
                                Jarle.


Jarle Brinchmann wrote:
Not that I know, but using cat & flat might solve your problem (it is what I normally use in these cases, but it only works well for 1D piddles). For higher D piddles it should still work but you need to use reshape after the cat operation instead of the simple flat.

  $x= flat(cat(@piddles))

[cat lovers might want to split the command into two lines... :)]

            J.


Kåre Edvardsen wrote:
Does "append" only support two pdl's at a time? I'd like to append quite many more pdl's and don't want to go via lots of temporar pdl's. The man says:

Usage: PDL::append(a,b,c) (you may leave temporaries or output variables out of list)

Does not a, b, and c represent three piddles here?

Cheers,
Ked


------------------------------------------------------------------------

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to