Skip Menu |

This queue is for tickets about the Math-Vector-Real-kdTree CPAN distribution.

Report information
The Basics
Id: 83330
Status: resolved
Worked: 2 hours (120 min)
Priority: 0/
Queue: Math-Vector-Real-kdTree

People
Owner: Nobody in particular
Requestors: bronevetsky1 [...] llnl.gov
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bug report
Date: Fri, 15 Feb 2013 00:55:47 +0000
To: "bug-Math-Vector-Real-kdTree [...] rt.cpan.org" <bug-Math-Vector-Real-kdTree [...] rt.cpan.org>
From: "Bronevetsky, Greg" <bronevetsky1 [...] llnl.gov>
I'm trying to use Math::Vector::Real::kdTree with Perl 5.14.2 to insert a sequence of 1-dimensional vectors with increasing values. As you can see, many of the values that I'm inserting do not appear in the output of ordered_by_proximity(). Further, they do not appear in the output of find_in_ball(). Code: #!/usr/bin/perl use strict; package cm; use Math::Vector::Real::kdTree; my $tree = Math::Vector::Real::kdTree->new(); for(my $i=0; $i<40; $i++) { $tree->insert(Math::Vector::Real->new($i)); print "$i:"; my @all = $tree->ordered_by_proximity(); foreach my $v (sort {$a <=> $b} @all) { print " $v"; } print "\n"; } Result: 0: 0 1: 0 1 2: 0 1 2 3: 0 1 2 3 4: 0 1 2 3 4 5: 0 1 2 3 4 5 6: 0 1 2 3 4 5 6 7: 0 1 2 3 4 5 6 7 8: 0 1 2 3 4 5 6 7 8 9: 0 1 2 3 4 5 6 7 8 9 10: 0 1 2 3 4 5 6 7 8 9 10 11: 0 1 2 3 4 5 6 7 8 9 10 11 12: 0 1 2 3 4 5 6 7 8 9 10 11 12 13: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 23: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 24: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 25: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 26: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 27: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 28: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 29: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 30: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33 34: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33 34 35: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33 34 35 36: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33 34 35 36 37: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33 34 35 36 37 38: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33 34 35 36 37 39: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33 34 35 36 37 Greg Bronevetsky Lawrence Livermore National Lab (925) 424-5756 bronevetsky@llnl.gov<mailto:bronevetsky@llnl.gov> http://greg.bronevetsky.com
Subject: Re: [rt.cpan.org #83330] Bug report
Date: Fri, 15 Feb 2013 04:36:14 -0800 (PST)
To: "bug-Math-Vector-Real-kdTree [...] rt.cpan.org" <bug-Math-Vector-Real-kdTree [...] rt.cpan.org>
From: Salvador Fandino <sfandino [...] yahoo.com>
Show quoted text
----- Original Message -----
> From: "Bronevetsky, Greg via RT" <bug-Math-Vector-Real-kdTree@rt.cpan.org> > To: > Cc: > Sent: Friday, February 15, 2013 1:56 AM > Subject: [rt.cpan.org #83330] Bug report > >T hu Feb 14 19:56:01 2013: Request 83330 was acted upon. > Transaction: Ticket created by bronevetsky1@llnl.gov >       Queue: Math-Vector-Real-kdTree >     Subject: Bug report >   Broken in: (no value) >     Severity: (no value) >       Owner: Nobody >   Requestors: bronevetsky1@llnl.gov >       Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=83330 > > > > I'm trying to use Math::Vector::Real::kdTree with Perl 5.14.2 to insert a > sequence of 1-dimensional vectors with increasing values. As you can see, many > of the values that I'm inserting do not appear in the output of > ordered_by_proximity(). Further, they do not appear in the output of > find_in_ball().
The insert method was broken. I have uploaded a new version of the module to CPAN: https://metacpan.org/release/SALVA/Math-Vector-Real-kdTree-0.07 Thank you for reporting the problem
Subject: RE: [rt.cpan.org #83330] Resolved: Bug report
Date: Fri, 15 Feb 2013 18:48:46 +0000
To: "bug-Math-Vector-Real-kdTree [...] rt.cpan.org" <bug-Math-Vector-Real-kdTree [...] rt.cpan.org>
From: "Bronevetsky, Greg" <bronevetsky1 [...] llnl.gov>
I just installed the 0.07 version at https://metacpan.org/release/S ALVA/Math-Vector-Real-kdTree-0 .07 but unfortunately, the result is the same. Text output below. Greg Bronevetsky Lawrence Livermore National Lab (925) 424-5756 bronevetsky@llnl.gov http://greg.bronevetsky.com hera840 : Math-Vector-Real-kdTree-0.07> ~/apps/minions/perl/bin/perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Math::Vector::Real::kdTree Writing MYMETA.yml hera840 : Math-Vector-Real-kdTree-0.07> make cp lib/Math/Vector/Real/kdTree.pm blib/lib/Math/Vector/Real/kdTree.pm Manifying blib/man3/Math::Vector::Real::kdTree.3 hera840 : Math-Vector-Real-kdTree-0.07> make test PERL_DL_NONLAZY=1 ~/apps/minions/perl/bin/perl-static "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/Math-Vector-Real-kdTree.t .. 1/6617 # srand: 1671162226 t/Math-Vector-Real-kdTree.t .. ok t/pods.t ..................... skipped: Only the author needs to check that POD docs are right All tests successful. Files=2, Tests=6617, 25 wallclock secs ( 1.18 usr 0.07 sys + 24.56 cusr 0.13 csys = 25.94 CPU) Result: PASS hera840 : Math-Vector-Real-kdTree-0.07> make install Installing ~/apps/minions/perl/html/site/lib/Math/Vector/Real/kdTree.html Installing ~/apps/minions/perl/site/lib/Math/Vector/Real/kdTree.pm Installing ~/apps/minions/perl/site/man/man3/Math::Vector::Real::kdTree.3 Appending installation info to ~/apps/minions/perl/lib/perllocal.pod hera840 : Math-Vector-Real-kdTree-0.07> cd ~/Byzantine_Failures/Root_Cause_Analysis/code/clusteredModel/ hera840 : clusteredModel> ./test.pl 0: 0 1: 0 1 2: 0 1 2 3: 0 1 2 3 4: 0 1 2 3 4 5: 0 1 2 3 4 5 6: 0 1 2 3 4 5 6 7: 0 1 2 3 4 5 6 7 8: 0 1 2 3 4 5 6 7 8 9: 0 1 2 3 4 5 6 7 8 9 10: 0 1 2 3 4 5 6 7 8 9 10 11: 0 1 2 3 4 5 6 7 8 9 10 11 12: 0 1 2 3 4 5 6 7 8 9 10 11 12 13: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 23: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 24: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 25: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 26: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 27: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 28: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 29: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 30: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33 34: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33 34 35: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33 34 35 36: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33 34 35 36 37: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33 34 35 36 37 38: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33 34 35 36 37 39: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 31 32 33 34 35 36 37 Show quoted text
> -----Original Message----- > From: Salvador Fandino Garcia via RT [mailto:bug-Math-Vector-Real- > kdTree@rt.cpan.org] > Sent: Friday, February 15, 2013 6:52 AM > To: Bronevetsky, Greg > Subject: [rt.cpan.org #83330] Resolved: Bug report > > <URL: https://rt.cpan.org/Ticket/Display.html?id=83330 > > > According to our records, your request has been resolved. If you have any > further questions or concerns, please respond to this message.
Subject: Re: [rt.cpan.org #83330] Resolved: Bug report
Date: Sat, 16 Feb 2013 00:39:27 -0800 (PST)
To: "bug-Math-Vector-Real-kdTree [...] rt.cpan.org" <bug-Math-Vector-Real-kdTree [...] rt.cpan.org>
From: Salvador Fandino <sfandino [...] yahoo.com>
Show quoted text
----- Original Message -----
> From: "Bronevetsky, Greg via RT" <bug-Math-Vector-Real-kdTree@rt.cpan.org> > To: > Cc: > Sent: Friday, February 15, 2013 7:48 PM > Subject: RE: [rt.cpan.org #83330] Resolved: Bug report > >       Queue: Math-Vector-Real-kdTree > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=83330 > > > I just installed the 0.07 version at https://metacpan.org/release/S > ALVA/Math-Vector-Real-kdTree-0 .07 but unfortunately, the result is the same.
Is it possible that your script could be using the old version? Add the following line at the beginning of the script to see:   print "kdtree module version: $Math::Vector::Real::kdTree::VERSION\n"; I have also released a new version of the module with your sample script added converted into a test. Could you try it?   https://metacpan.org/release/SALVA/Math-Vector-Real-kdTree-0.08
Subject: RE: [rt.cpan.org #83330] Resolved: Bug report
Date: Tue, 19 Feb 2013 20:41:40 +0000
To: "bug-Math-Vector-Real-kdTree [...] rt.cpan.org" <bug-Math-Vector-Real-kdTree [...] rt.cpan.org>
From: "Bronevetsky, Greg" <bronevetsky1 [...] llnl.gov>
Thanks! Yeah, it was my own installation mistake. The test work now. I'll let you know if I have any problems with the real code that uses the kdTree. Greg Bronevetsky Lawrence Livermore National Lab (925) 424-5756 bronevetsky@llnl.gov http://greg.bronevetsky.com Show quoted text
> -----Original Message----- > From: Salvador \"Fandiño\" via RT [mailto:bug-Math-Vector-Real- > kdTree@rt.cpan.org] > Sent: Saturday, February 16, 2013 12:40 AM > To: Bronevetsky, Greg > Subject: Re: [rt.cpan.org #83330] Resolved: Bug report > > <URL: https://rt.cpan.org/Ticket/Display.html?id=83330 > > > > > > > ----- Original Message -----
> > From: "Bronevetsky, Greg via RT" <bug-Math-Vector-Real-
> kdTree@rt.cpan.org>
> > To: > > Cc: > > Sent: Friday, February 15, 2013 7:48 PM > > Subject: RE: [rt.cpan.org #83330] Resolved: Bug report > > > >       Queue: Math-Vector-Real-kdTree > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=83330 > > > > > I just installed the 0.07 version at https://metacpan.org/release/S > > ALVA/Math-Vector-Real-kdTree-0 .07 but unfortunately, the result is the
> same. > > Is it possible that your script could be using the old version? > > Add the following line at the beginning of the script to see: > >   print "kdtree module version: $Math::Vector::Real::kdTree::VERSION\n"; > > I have also released a new version of the module with your sample script > added converted into a test. Could you try it? > >   https://metacpan.org/release/SALVA/Math-Vector-Real-kdTree-0.08