Esempio n. 1
0
 /// <summary>
 /// Adds the scalar to each element of the array
 /// </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 Add <T>(T[] x, T scalar, T[] result)
 {
     VectorOp <T> .Add(x, scalar, result);
 }
Esempio n. 2
0
 /// <summary>
 /// Element-wise addition.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <param name="result">will be set to the resulting array</param>
 public static void Add <T>(T[] x, T[] y, T[] result)
 {
     VectorOp <T> .Add(x, y, result);
 }