Click or drag to resize

ComplexMatrixAddition Operator (ComplexMatrix, DoubleMatrix)

Determines the sum of two matrices.

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public static ComplexMatrix operator +(
	ComplexMatrix left,
	DoubleMatrix right
)

Parameters

left
Type: Novacta.AnalyticsComplexMatrix
The left operand.
right
Type: Novacta.AnalyticsDoubleMatrix
The right operand.

Return Value

Type: ComplexMatrix
The result of adding left to right.
Exceptions
ExceptionCondition
ArgumentNullExceptionleft is null.
-or-
right is null.
ArgumentException Both left and right are not scalar matrices, and they have not the same number of rows and columns.
Remarks

Let LaTeX equation and LaTeX equation be the left number of rows and columns, respectively, and consider its generic entry

LaTeX equation

Analogously, Let LaTeX equation and LaTeX equation be the right number of rows and columns, respectively, and let its generic entry given by

LaTeX equation

The method operates as follows.

  • If left is scalar, then the method returns a matrix having the same dimensions of right, whose generic entry is:

    LaTeX equation

  • If right is scalar, then the method returns a matrix having the same dimensions of left, whose generic entry is:

    LaTeX equation

  • If neither left nor right is scalar, then the method returns a matrix whose generic entry is

    LaTeX equation

    provided that the dimensions of left agree with those of right; otherwise, an exception is thrown.

See Also