Multiplies a Vector by this Matrix and stores the result in a second vector of type GeneralVector.

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Overridable Function AddProductToVector ( _
	alpha As Double, _
	vector As Vector, _
	trans As TransposeOperation, _
	beta As Double, _
	resultVector As GeneralVector _
) As GeneralVector
C#
public virtual GeneralVector AddProductToVector (
	double alpha,
	Vector vector,
	TransposeOperation trans,
	double beta,
	GeneralVector resultVector
)
C++
public:
virtual GeneralVector^ AddProductToVector (
	double alpha, 
	Vector^ vector, 
	TransposeOperation trans, 
	double beta, 
	GeneralVector^ resultVector
)

Parameters

alpha (System.Double)
Multiplier for the vector-matrix product of this matrix with the vector vector.
vector (Extreme.Mathematics.LinearAlgebra.Vector)
A Vector.
trans (Extreme.Mathematics.LinearAlgebra.TransposeOperation)
A TransposeOperation value that specifies the operation, if any, to be performed on this instance before the multiplication.
beta (System.Double)
Multiplier for the vector resultVector.
resultVector (Extreme.Mathematics.LinearAlgebra.GeneralVector)
The GeneralVector that is to contain the result of the multiplication.

Return Value

The vector resultVector.

Remarks

The length of the vector vector must equal the number of columns in this instance. The length of the vector resultVector must equal the number of rows.

Exceptions

ExceptionCondition
ArgumentNullExceptionvector is nullNothingnullptr.

-or-

resultVector is nullNothingnullptr.

DimensionMismatchExceptionThe length of the vector resultVector does not equal the number of columns of this matrix.

-or-

The length of the vector vector does not equal the number of rows of this matrix.