| ComplexMatrixMultiply Method (ComplexMatrix, ReadOnlyDoubleMatrix) |
Determines the product of two matrices.
Namespace:
Novacta.Analytics
Assembly:
Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax public static ComplexMatrix Multiply(
ComplexMatrix left,
ReadOnlyDoubleMatrix right
)
Public Shared Function Multiply (
left As ComplexMatrix,
right As ReadOnlyDoubleMatrix
) As ComplexMatrix
public:
static ComplexMatrix^ Multiply(
ComplexMatrix^ left,
ReadOnlyDoubleMatrix^ right
)
static member Multiply :
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 multiplying
left by
right.
Exceptions Exception | Condition |
---|
ArgumentNullException | left is null.
-or- right is null.
|
ArgumentException |
Both left and right are not scalar
matrices, and the number of columns of left is not equal
to the number of rows of right.
|
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 number of columns of left agrees
with the number of rows of right; otherwise, an exception
is thrown.
See Also