IMSL C# Numerical Library

Matrix.Add Method 

Add two rectangular matrixs, a + b.

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

Parameters

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

Return Value

A double rectangular matrix representing the matrix sum 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