Vector<T>.Multiply Operator

Definition

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

Overload List

Multiply(T, Vector<T>) Multiplies a vector by a constant.
Multiply(Vector<T>, T) Multiplies a vector by a constant.

Multiply(T, Vector<T>) Operator

Multiplies a vector by a constant.
C#
public static Vector<T> operator *(
	T factor,
	Vector<T> vector
)

Parameters

factor  T
A number.
vector  Vector<T>
A vector.

Return Value

Vector<T>
A vector whose elements are the corresponding elements of vector multiplied by factor.

Exceptions

ArgumentNullException

vector is null.

Multiply(Vector<T>, T) Operator

Multiplies a vector by a constant.
C#
public static Vector<T> operator *(
	Vector<T> vector,
	T factor
)

Parameters

vector  Vector<T>
A vector.
factor  T
A number.

Return Value

Vector<T>
A vector whose elements are the corresponding elements of vector multiplied by factor.

Exceptions

ArgumentNullException

vector is null.

See Also