IMSL C# Numerical Library

Matrix.Subtract Method 

Subtract two rectangular matrixs, a - b.

public static double[,] Subtract(
   double[,] a,
   double[,] b
);

Parameters

a
A double rectangular matrix.
b
A double rectangular matrix.

Return Value

A double rectangular matrix representing the matrix difference of the two arguments.

Exceptions

Exception Type Condition
ArgumentException is thrown when the matrices are not the same size

See Also

Matrix Class | Imsl.Math Namespace