Improving dot product for standard multidimensional D arrays

p.shkadzko p.shkadzko at gmail.com
Mon Mar 2 20:22:55 UTC 2020


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:
>
> [...]

Interesting growth of processing time. Could it be GC?

+------------------+-------------+
| matrixDotProduct | time (sec.) |
+------------------+-------------+
| 2x[100 x 100]    |        0.01 |
| 2x[1000 x 1000]  |        2.21 |
| 2x[1500 x 1000]  |         5.6 |
| 2x[1500 x 1500]  |        9.28 |
| 2x[2000 x 2000]  |       44.59 |
| 2x[2100 x 2100]  |       55.13 |
+------------------+-------------+


More information about the Digitalmars-d-learn mailing list