Thanks for the report -- fixed in git. On Mar 9, 2013, at 12:14 AM, Craig DeForest <[email protected]> wrote:
> Why yes, I believe it is a bug. > > Either: (A) promoting the pdl(1) to pdl(1,1) via the threading engine, or (B) > complaining about size mismatch would be > valid behaviors (with (A) preferable), but what you're seeing is bad behavior. > > You can work around it with glue: > > pdl> p pdl(1)->glue(1,pdl(0,2)); > > [ > [1 1] > [2 3] > ] > > > > On Mar 8, 2013, at 8:15 PM, Luis Mochan <[email protected]> wrote: > >> Is the following behavior of cat a bug? >> >> pdl> p cat(pdl(1),pdl(0,2)) >> [1 2] >> pdl> p cat(pdl(0,2), pdl(1)) >> [ >> [0 2] >> [1 1] >> ] >> In the first example, shouldn't pdl(1) outh to have been extended to a >> vector adding a dummy dimension before performing the concatenation, as in >> the >> second example? >> >> Best regards, >> Luis >> >> >> >> -- >> >> o >> W. Luis Mochán, | tel:(52)(777)329-1734 /<(*) >> Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `>/ /\ >> Apdo. Postal 48-3, 62251 | (*)/\/ \ >> Cuernavaca, Morelos, México | [email protected] /\_/\__/ >> GPG: DD344B85, 2ADC B65A 5499 C2D3 4A3B 93F3 AE20 0F5E DD34 4B85 >> >> >> _______________________________________________ >> 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
