Vector<T>.MultiplyInPlace Method

Definition

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

Overload List

MultiplyInPlace(T) Multiplies a vector in-place by the specified factor.
MultiplyInPlace(Matrix<T>, MatrixOperationSide) Multiplies a Vector<T> by a Matrix<T>.

MultiplyInPlace(T)

Multiplies a vector in-place by the specified factor.
C#
public virtual Vector<T> MultiplyInPlace(
	T factor
)

Parameters

factor  T
The factor to multiply the vector by.

Return Value

Vector<T>
A reference to this vector.

MultiplyInPlace(Matrix<T>, MatrixOperationSide)

Multiplies a Vector<T> by a Matrix<T>.
C#
public virtual Vector<T> MultiplyInPlace(
	Matrix<T> matrix,
	MatrixOperationSide side
)

Parameters

matrix  Matrix<T>
A Matrix<T>.
side  MatrixOperationSide
A MatrixOperationSide value that indicates whether the matrix is the left or right operand of the multiplication.

Return Value

Vector<T>
A reference to this instance.

Exceptions

ArgumentNullException

matrix is null.

DimensionMismatchException

The number of rows or columns of matrix does not equal the length of this instance.

-or-

matrix is not a square matrix.

See Also