| ComplexMatrixAdd Method (ComplexMatrix, ReadOnlyDoubleMatrix) |
Determines the sum of two matrices.
Namespace:
Novacta.Analytics
Assembly:
Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax public static ComplexMatrix Add(
ComplexMatrix left,
ReadOnlyDoubleMatrix right
)
Public Shared Function Add (
left As ComplexMatrix,
right As ReadOnlyDoubleMatrix
) As ComplexMatrix
public:
static ComplexMatrix^ Add(
ComplexMatrix^ left,
ReadOnlyDoubleMatrix^ right
)
static member Add :
left : ComplexMatrix *
right : ReadOnlyDoubleMatrix -> ComplexMatrix
Parameters
- left
- Type: Novacta.AnalyticsComplexMatrix
The left operand. - right
- Type: Novacta.AnalyticsReadOnlyDoubleMatrix
The right operand.
Return Value
Type:
ComplexMatrix
The result of adding
left to
right.
Exceptions Remarks
Let and
be the left
number of rows and columns, respectively, and consider its generic entry
Analogously, Let and
be the right
number of rows and columns, respectively, and let its generic entry given by
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:
-
If right is scalar, then the method returns a matrix
having the same dimensions of left, whose generic
entry is:
-
If neither left nor right is
scalar, then the method returns a matrix
whose generic entry is
provided that the dimensions of left agree
with those of right; otherwise, an exception
is thrown.
See Also