Multiplies the components of a Matrix by the corresponding
components of another matrix.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function ComponentwiseMultiply ( _ matrix1 As Matrix, _ matrix2 As Matrix _ ) As Matrix |
| C# |
|---|
public static Matrix ComponentwiseMultiply ( Matrix matrix1, Matrix matrix2 ) |
| C++ |
|---|
public: static Matrix^ ComponentwiseMultiply ( Matrix^ matrix1, Matrix^ matrix2 ) |
Parameters
- matrix1 (Extreme.Mathematics.LinearAlgebra.Matrix)
- A Matrix.
- matrix2 (Extreme.Mathematics.LinearAlgebra.Matrix)
- A Matrix.
Return Value
A new Matrix whose components are equal to the products of the components of matrix1 and matrix2 .
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | matrix1 is nullNothingnullptr -or- matrix2 is nullNothingnullptr |
| DimensionMismatchException |
The number of rows of matrix1 does not equal the number of rows of matrix2.
-or- The number of columns of matrix1 does not equal the number of columns of matrix2. |