john-h-k / MathSharp

A vector and matrix library written in C# using hardware intrinsics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[PROPOSAL] Make all operations use 128 bit wide vectors and create a new API for 256 bit wide vectors.

opened this issue · comments

Currently doubles use 256 wide vectors for vectorized math which can cause downclocking on most modern CPUs, there's also no way to use 256 bit wide vectors for float math.
I think adding a new static class named something like HeavyVector which would mirror the Vector class but that uses AVX instructions with fallbacks to SSE and software would allow users to decide for themselves if downclocking is worth it for their use case.

Hmmm