Did you add "use PDL::MatrixOps qw( inv );" at the top of LM.pm? inv is from
PDL::MatrixOps, you need to import it into LM.pm before calling it directly.

Maggie

On Sep 30, 2009 5:16 PM, "philge philip" <[email protected]> wrote:

hi
i have run with changes you told. and i get following test output.

[r...@penguin PDL-Stats-0.2.5]# make test
make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Basic'
make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Basic'
make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Distr'

 **** no GSL lib, skip PDL::Stats::Distr ****
make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Distr'
make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/GLM'
make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/GLM'
make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Kmeans'
make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Kmeans'
make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/GSL'

**** no GSL lib, skip PDL::GSL::CDF ****
make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/GSL'

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/a...
t/stats_glm.......ok 1/33Undefined subroutine &PDL::Fit::LM::inv called at
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/PDL/Fit/LM.pm
line 155, <DATA> line 387..

 # Looks like you planned 33 tests but only ran 19. # Looks like your test
died just after 19. t/sta...
[r...@penguin PDL-Stats-0.2.5]# make install
make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Basic'
make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Basic'
make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Distr'

**** no GSL lib, skip PDL::Stats::Distr ****
make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Distr'
make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/GLM'
make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/GLM'
make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/Kmeans'
make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0.2.5/Kmeans'
make[1]: Entering directory `/root/.cpan/build/PDL-Stats-0.2.5/GSL'

**** no GSL lib, skip PDL::GSL::CDF ****
make[1]: Leaving directory `/root/.cpan/build/PDL-Stats-0..2.5/GSL'
Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree
Installing /usr/share/man/man3/PDL::Stats::Basic.3pm
Installing /usr/share/man/man3/PDL::Stats::Kmeans.3pm
Installing /usr/share/man/man3/PDL::Stats::GLM.3pm
Writing
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/PDL/Stats/.packlist
Appending installation info to
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod


AND i tried to run the perl program with sample data. GOT FOLLOWING OUTPUT

Undefined subroutine &PDL::Fit::LM::inv called at
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/PDL/Fit/LM.pm
line 155, <DATA> line 387.

philge


------------------------------
*From:* Maggie Xiong <[email protected]>
*To:* philge philip <[email protected]>
*Cc:* pdl <[email protected]>
*Sent:* Wednesday, 30 September, 2009 4:07:09 PM
*Subject:* Re: [Perldl] error with PDL::Stats

The same test passes fine on my Ubuntu 8.04 + Perl 5.8.8 + PDL 2.4.4_x. The
error is produced by PD...

------------------------------
Keep up with people you care about with Yahoo! India Mail. Learn
how<http://in.rd.yahoo.com/tagline_galaxy_1/*http://in.overview.mail.yahoo.com/connectmore>
.
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to