fitpoly1d() no longer seems to thread over extra dimensions:

pdl> $x = pdl( [101,103,104,102,109] )

pdl> p $x
[101 103 104 102 109]
pdl> ($xf, $c) = fitpoly1d($x, 2)

pdl> p $xf
[100.8 102.3 103.8 105.3 106.8]
pdl> 
pdl> $x = pdl( [101,103,104,102,109],[101,103,104,102,109] )

pdl> p $x

[
 [101 103 104 102 109]
 [101 103 104 102 109]
]

pdl> ($xf, $c) = fitpoly1d($x, 2)

pdl> p $xf  # WTF?!

[
 [    53.496     12.576    -28.344    -69.264   -110.184]
 [    53.496     12.576    -28.344    -69.264   -110.184]
]


I took a look at the Polynomial.pm and could no longer figure it out! I swear 
it used to work - anyone have any ideas?

Karl

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
pdl-devel mailing list
pdl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-devel

Reply via email to