On a Windows machine with Intel Core-i5, I want to write a c# program which sums an array of double at highest possible speed, which in fact means using the instruction set of the built-in FPU.
double[] arr = new double[] { 1.123, 2.234, 3.1234, .... };
The processor has a built-in command which can sum up a whole memory array ("vector") with one single command. Is there a way in C# to execute the summation with this built-in machine command? ( I mean, besides writing unmanaged assembly code)
EDIT: Or is there a library call which will do this ?