.NET Matrix Library
Multiply(Double,TransposeMode,Matrix,Vector,Double,Vector) Method
See Also  Send Feedback



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.

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

Syntax

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)Copy Code
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.

Exceptions

ExceptionDescription
SizeMismatchExceptionThe 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.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7

See Also

.NET Matrix Library