Computes the product of a matrix and vector.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static void Product( FloatComplexMatrix A, FloatComplexVector x, FloatComplexVector result ) |
| Visual Basic (Declaration) |
|---|
Public Shared Sub Product ( _ A As FloatComplexMatrix, _ x As FloatComplexVector, _ result As FloatComplexVector _ ) |
| Visual C++ |
|---|
public: static void Product( FloatComplexMatrix^ A, FloatComplexVector^ x, FloatComplexVector^ result ) |
Parameters
- A
- Type: CenterSpace.NMath.Core..::.FloatComplexMatrix
An m x n matrix.
- x
- Type: CenterSpace.NMath.Core..::.FloatComplexVector
A vector with n elements.
- result
- Type: CenterSpace.NMath.Core..::.FloatComplexVector
A vector with m elements whose contents will be overwritten with the result. This vector must have length equal to the number of rows in A.
Remarks
Vector xis treated as a column vector by this function.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if x does not have length equal to the number of columns in A or result does not have length equal to the number of rows in A. |