Vector.AddProduct Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

AddProduct<T>(Vector<T>, LinearOperator<T>, Vector<T>) Adds the product of a matrix and a vector to a vector.
AddProduct<T>(Vector<T>, LinearOperator<T>, TransposeOperation, Vector<T>) Adds the product of a matrix and a vector to a vector.

AddProduct<T>(Vector<T>, LinearOperator<T>, Vector<T>)

Adds the product of a matrix and a vector to a vector.
C#
public static Vector<T> AddProduct<T>(
	this Vector<T> left,
	LinearOperator<T> leftFactor,
	Vector<T> rightFactor
)

Parameters

left  Vector<T>
The left operand of the addition.
leftFactor  LinearOperator<T>
A matrix that acts as the left operand of the multiplication.
rightFactor  Vector<T>
The right operand of the multiplication.

Type Parameters

T

Return Value

Vector<T>
The sum of left with the product of leftFactor with rightFactor.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

AddProduct<T>(Vector<T>, LinearOperator<T>, TransposeOperation, Vector<T>)

Adds the product of a matrix and a vector to a vector.
C#
public static Vector<T> AddProduct<T>(
	this Vector<T> left,
	LinearOperator<T> leftFactor,
	TransposeOperation operation,
	Vector<T> rightFactor
)

Parameters

left  Vector<T>
The left operand of the addition.
leftFactor  LinearOperator<T>
A matrix that acts as the left operand of the multiplication.
operation  TransposeOperation
The operation to be performed on leftFactor before multiplying.
rightFactor  Vector<T>
The right operand of the multiplication.

Type Parameters

T

Return Value

Vector<T>
The sum of left with the product of leftFactor transformed as specified by operation with rightFactor.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also