예제 #1
0
 /// <summary>
 /// Adds a matrix and a scalar.
 /// </summary>
 /// <param name="a">A <see cref="Matrix2D"/> instance.</param>
 /// <param name="s">A scalar.</param>
 /// <returns>A new <see cref="Matrix2D"/> instance containing the sum.</returns>
 public static Matrix2D operator+(double s, Matrix2D a)
 {
     return(Matrix2D.Add(a, s));
 }
예제 #2
0
 /// <summary>
 /// Adds two matrices.
 /// </summary>
 /// <param name="a">A <see cref="Matrix2D"/> instance.</param>
 /// <param name="b">A <see cref="Matrix2D"/> instance.</param>
 /// <returns>A new <see cref="Matrix2D"/> instance containing the sum.</returns>
 public static Matrix2D operator+(Matrix2D a, Matrix2D b)
 {
     return(Matrix2D.Add(a, b));
 }