YAMP.Numerics.BlasL1.cScal C# (CSharp) Method

cScal() public static method

Returns the result of the product x = a * x, with a complex a and a complex vector x.
public static cScal ( ScalarValue alpha, ScalarValue store, int offset, int stride, int count ) : void
alpha YAMP.ScalarValue Some arbitrary complex scalar.
store YAMP.ScalarValue The complex vector x.
offset int The offset in the vector x.
stride int The offset between two elements in x.
count int The number of elements to consider (from x).
return void
        public static void cScal(ScalarValue alpha, ScalarValue[] store, int offset, int stride, int count)
        {
            int n = 0;
            int i = offset;

            while (n < count)
            {
                store[i] *= alpha;
                n++;
                i += stride;
            }
        }