Avx Basic Linear Algebra Subroutine and Neural Network Kernel Library
.NET 5.0
AVX2 suppoted CPU. (Intel:Haswell(2013)-, AMD:Excavator(2015)-)
- To install, just import the DLL.
- This library does not change the environment at all.
// make input array
Array<float> x1 = new float[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
Array<float> x2 = new float[] { 6, 7, 8, 9, 10, 0, 1, 2, 3, 4, 5 };
// make zeroset output array
Array<float> y = new(x1.Length);
// operate
Elementwise.Add(9, x1, x2, y);
// check
float[] t = new float[] { 6, 8, 10, 12, 14, 5, 7, 9, 11, 0, 0 };
CollectionAssert.AreEqual(t, (float[])y);