[bug #68035] [Statistics] pdist2 memory requirement and speed
Liang Tang <[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 #6, bug #68035 (group octave):
This is type of numbers I got few days ago. I just re-run to provide you the
numbers on my end as a reference. Thanks.
A = rand(4754,1024); B = rand(6800,1024);tic; D = pdist2_das(A,B,'euclidean');
toc
A = rand(4754,1024); B = rand(6800,1024);tic; DD = sqrt(
bsxfun(@plus,sum(A.^2,2),sum(B.^2,2)') - 2*(A*B') ); toc
Elapsed time is 0.875201 seconds.
Elapsed time is 0.830285 seconds.
_______________________________________________________
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----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaY3S/wAKCRCqLAuaBUf3 TupnAQDd8KbvTHhME942fuP4pd8OmWdPiP077YfZ5qfNqnPHKgD+LM4Wufwdg1i9 7+n0Bwrd1BTNvjatwmX9R5i5JCg/NAc= =bXtV -----END PGP SIGNATURE-----