예제 #1
0
 /// <summary>
 ///   Elementwise addition of a and b, storing in result.
 /// </summary>
 ///
 /// <param name="a">The first vector to add.</param>
 /// <param name="b">The second vector to add.</param>
 /// <param name="result">An array to store the result.</param>
 /// <returns>The same vector passed as result.</returns>
 ///
 public void Add(double[] a, double[] b, double[] result)
 {
     linear.Add(Transform(a), Transform(b), result);
 }
예제 #2
0
 /// <summary>
 ///   Elementwise addition of a and b, storing in result.
 /// </summary>
 ///
 /// <param name="a">The first vector to add.</param>
 /// <param name="b">The second vector to add.</param>
 /// <param name="result">An array to store the result.</param>
 /// <returns>The same vector passed as result.</returns>
 ///
 public double[] Add(double[] a, double[] b, double[] result)
 {
     return(linear.Add(Transform(a), Transform(b), result));
 }