/// <summary> /// Multiplies the scalar to each element in x /// </summary> /// <typeparam name="T"></typeparam> /// <param name="x"></param> /// <param name="scalar"></param> /// <param name="result">will be set to the resulting array</param> public static void Multiply <T>(T[] x, T scalar, T[] result) { VectorOp <T> .Multiply(x, scalar, result); }
/// <summary> /// Element-wise multiplication /// </summary> /// <typeparam name="T"></typeparam> /// <param name="x"></param> /// <param name="y"></param> /// <param name="result">will be set to the resulting aray</param> public static void Multiply <T>(T[] x, T[] y, T[] result) { VectorOp <T> .Multiply(x, y, result); }