Accord.Math.ComplexMatrix.Multiply C# (CSharp) Method

Multiply() public static method

Elementwise multiplication of two complex vectors.
public static Multiply ( this a, Complex b ) : Complex[]
a this
b Complex
return Complex[]
        public static Complex[] Multiply(this Complex[] a, Complex[] b)
        {
            if (a == null) throw new ArgumentNullException("a");
            if (b == null) throw new ArgumentNullException("b");

            Complex[] r = new Complex[a.Length];
            for (int i = 0; i < a.Length; i++)
            {
                r[i] = Complex.Multiply(a[i], b[i]);
            }
            return r;
        }