Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: speeding up ACCUMARRAY
Replies: 12   Last Post: Nov 15, 2012 3:35 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Matt J

Posts: 4,994
Registered: 11/28/09
Re: speeding up ACCUMARRAY
Posted: Nov 14, 2012 3:27 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <k80spd$ra8$1@newscl01ah.mathworks.com>...
> "Matt J" wrote in message <k80l22$qd5$1@newscl01ah.mathworks.com>...
>

> >
> > Anyway, my point remains. Sparse matrix multiplication has to perform multiplications with the x(j) somewhere, whereas accumarray, in my tests, does not. So sparse mult. is further handicapped.

>
> 1) Sparse internally access memory via integer indexing. Your accumarray has to cast doubles (firs input) to integers.

==================

Precasting to uint32 does seem to help!




> 2) Sparse multiplication engine might benefice multi-threading, and other low-level optimization.
>
> Accumarray is not slow. Just sparse is fast.

================

Seems like a false distinction to me. ;)



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.