Casting MapResult
jmh530 via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jun 16 12:46:59 PDT 2015
On Tuesday, 16 June 2015 at 16:38:55 UTC, John Colvin wrote:
>
> What OS are you on? See http://wiki.dlang.org/Compilers
I'm on Windows 7 at work, and I have both Win7 and linux at home.
I figure I can try it on linux at home. Sometimes the work
computer is a bit funky with installing things, so I didn't want
to bother.
On Tuesday, 16 June 2015 at 16:37:35 UTC, John Colvin wrote:
>
> If you want really fast exponentiation of an array though, you
> want to use SIMD. Something like http://www.yeppp.info would be
> easy to use from D.
I wasn't familiar with yeppp. Thanks. I'll probably keep things
in as native D for now, but it's good to know there are other
options.
I compared the results with Julia and R while I was at it. The D
code was quite a bit faster than them. It's just that numpy's
doing something that is getting better performance. After some
investigation, it's possible that my version of numpy is using
SSE, which is a form of SIMD from Intel. It doesn't seem to be
easy to check this. The one method I found on stackoverflow
doesn't work for me...
It looks like D has some support for simd, but only for a limited
subset of matrices.
More information about the Digitalmars-d-learn
mailing list