Updates a matrix with the scaled outer product of two vectors.

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

Syntax

Visual Basic (Declaration)
Public Function AddOuterProduct ( _
	factor As Double, _
	vector1 As Vector, _
	vector2 As Vector _
) As GeneralMatrix
C#
public GeneralMatrix AddOuterProduct (
	double factor,
	Vector vector1,
	Vector vector2
)
C++
public:
GeneralMatrix^ AddOuterProduct (
	double factor, 
	Vector^ vector1, 
	Vector^ vector2
)

Parameters

factor (System.Double)
The scale factor.
vector1 (Extreme.Mathematics.LinearAlgebra.Vector)
The first (column) vector.
vector2 (Extreme.Mathematics.LinearAlgebra.Vector)
The second (row) vector.

Return Value

A reference to this instance.

Remarks

The length of the vector vector1 must equal the number of rows of this matrix. The length of the vector vector2 must equal the number of columns of this matrix. If either condition is violated, an exception of type DimensionMismatchException is thrown.

This operation is sometimes called vector1 rank-1 update.

Exceptions

ExceptionCondition
ArgumentNullExceptionvector1 is nullNothingnullptr.

-or-

vector2 is nullNothingnullptr.

DimensionMismatchExceptionThe length of vector1 does not equal the number of rows in this GeneralMatrix, or the length of vector1 does not equal the number of columns.