[bug #68035] [Statistics] pdist2 memory requirement and speed
"Dmitri A. Sergatskov" <[email protected]>
| Newsgroups | gmane.comp.gnu.octave.bugs |
|---|---|
| Message-ID | <[email protected]> |
Please use the bug tracker to post updates to a bug report. The mailing list is intended as a read-only notification stream. Info posted to this mailing list address won't appear in the tracker database where it is most useful.
Follow-up Comment #1, bug #68035 (group octave):
The same idea but a (somewhat) different implementation.
(file pdist2_das.m)
octave:1> pkg load statistics
octave:2> test pdist2
PASSES 33 out of 33 tests
octave:3> A = rand(4754,1024);
octave:4> B = rand(6800,1024);
octave:5> tic; D = pdist2(A,B,'euclidean'); toc
Elapsed time is 0.587731 seconds.
octave:6> tic; D = pdist2(A,B,'squaredeuclidean'); toc
Elapsed time is 0.300159 seconds.
It does return slightly different numbers than original pdist2
(due to Blas usage and different OP order) so it breaks a couple statistics
tests due to precision.
Dmitri.
--
(file #58231)
_______________________________________________________
Additional Item Attachment:
Name: pdist2_das.m Size: 24KiB
<https://file.savannah.gnu.org/file/pdist2_das.m?file_id=58231>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-5c89ea1de46466fa27ad9decaeba153e39db01be.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68035>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaYpGegAKCRCqLAuaBUf3 TsB+AP4/fRC/7lB8E+yvpxVRpCrImFeOc96zTRAUPcI349SToQEAr6E+SkqKNRkz NI2FGsiuxAqMqcj83hfG6d3iZGJYEgc= =2gN7 -----END PGP SIGNATURE-----