Computes a scalar-matrix-vector product and adds the result to a scalar-vector product. The operation is defined as:
y= alpha * op(A) * x + beta *y
| Visual Basic (Declaration) | |
|---|---|
Public Overloads Shared Sub Multiply( _ ByVal alpha As Double, _ ByVal transA As TransposeMode, _ ByVal A As Matrix, _ ByVal x As Vector, _ ByVal beta As Double, _ ByVal y As Vector _ ) | |
| Visual Basic (Usage) | |
|---|---|
Dim alpha As Double Dim transA As TransposeMode Dim A As Matrix Dim x As Vector Dim beta As Double Dim y As Vector Matrix.Multiply(alpha, transA, A, x, beta, y) | |
| C# | |
|---|---|
public static void Multiply( double alpha, TransposeMode transA, Matrix A, Vector x, double beta, Vector y ) | |
| C++/CLI | |
|---|---|
public: static void Multiply( double alpha, TransposeMode transA, Matrix^ A, Vector^ x, double beta, Vector^ y ) | |
Parameters
- alpha
- A double scalar value.
- transA
- A TransposeMode enumeration specifying whether matrix A is transposed.
- A
- A Matrix Class object representing the matrix to multiply.
- x
- A Vector Class object representing the vector x.
- beta
- A double scalar value to multiply the vector y with.
- y
- A Vector Class object which will contain the result.
| Exception | Description |
|---|---|
| SizeMismatchException | The length of vector x does not equal to the number of matrix columns or the lenght of vector y does not equal the number of matrix rows. |
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7