Esempio n. 1
0
 /// <summary>
 /// Subtracts the scalar from each element in 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 Subtract <T>(T[] x, T scalar, T[] result)
 {
     VectorOp <T> .Subtract(x, scalar, result);
 }
Esempio n. 2
0
 /// <summary>
 /// Element-wise subtraction.
 /// </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 Subtract <T>(T[] x, T[] y, T[] result)
 {
     VectorOp <T> .Subtract(x, y, result);
 }