Multiply two matrices.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleMatrix Multiply( DoubleMatrix A, DoubleMatrix B ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Multiply ( _ A As DoubleMatrix, _ B As DoubleMatrix _ ) As DoubleMatrix |
| Visual C++ |
|---|
public: static DoubleMatrix^ Multiply( DoubleMatrix^ A, DoubleMatrix^ B ) |
Parameters
- A
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
A matrix.
- B
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
A matrix.
Return Value
A matrix C where C[i,j] = A[i,j] * B[i,j].
Remarks
This method performs elementwise multiplication. See NMathFunctions.Product()
for computing the matrix inner product.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if the two matrices do not have the same dimensions. |