Improving dot product for standard multidimensional D arrays

maarten van damme maartenvd1994 at gmail.com
Tue Mar 3 10:25:27 UTC 2020


it is difficult to write an efficient matrix matrix multiplication in any
language. If you want a fair comparison, implement your naive method in
python and compare those timings.

Op di 3 mrt. 2020 om 04:20 schreef 9il via Digitalmars-d-learn <
digitalmars-d-learn at puremagic.com>:

> On Sunday, 1 March 2020 at 20:58:42 UTC, p.shkadzko wrote:
> > Hello again,
> >
> > Thanks to previous thread on multidimensional arrays, I managed
> > to play around with pure D matrix representations and even
> > benchmark a little against numpy:
> >
> > [...]
>
> Matrix multiplication is about cache-friendly blocking.
> https://www.cs.utexas.edu/users/pingali/CS378/2008sp/papers/gotoPaper.pdf
>
> `mir-blas` package can be used for matrix operations for ndslice.
>   `cblas`  - if you want to work with your own matrix type .
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20200303/569a6e43/attachment.htm>


More information about the Digitalmars-d-learn mailing list