Vector.ElementwiseDivide Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

ElementwiseDivide<T>(Vector<T>, Vector<T>) Divides a vector element-wise by another vector.
ElementwiseDivide<T>(T, Vector<T>) Divides a scalar by each element of a vector.

Vector.ElementwiseDivide<T>(Vector<T>, Vector<T>)

Divides a vector element-wise by another vector.
C#
public static Vector<T> ElementwiseDivide<T>(
	Vector<T> left,
	Vector<T> right
)

Parameters

left  Vector<T>
A vector.
right  Vector<T>
A vector.

Type Parameters

T

Return Value

Vector<T>
A new vector whose elements are equal to the quotient of the elements of left divided right .

Exceptions

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchException The length of left does not equal the length of right.

Vector.ElementwiseDivide<T>(T, Vector<T>)

Divides a scalar by each element of a vector.
C#
public static Vector<T> ElementwiseDivide<T>(
	T left,
	Vector<T> right
)

Parameters

left  T
A scalar.
right  Vector<T>
A vector.

Type Parameters

T

Return Value

Vector<T>
A new vector whose elements are equal to the quotient of the elements of left divided right .

Exceptions

ArgumentNullException

right is null

DimensionMismatchException The length of left does not equal the length of right.

See Also