Vector.ElementwiseDivideInto Method

Definition

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

Overload List

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

ElementwiseDivideInto<T>(Vector<T>, Vector<T>, Vector<T>)

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

Parameters

left  Vector<T>
A vector.
right  Vector<T>
A vector.
result  Vector<T>
The vector that is to hold the result. May be null.

Type Parameters

T

Return Value

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

Exceptions

ArgumentNullException

left is null.

-or-

right is null.

DimensionMismatchException

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

ElementwiseDivideInto<T>(T, Vector<T>, Vector<T>)

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

Parameters

left  T
A scalar.
right  Vector<T>
A vector.
result  Vector<T>
The vector that is to hold the result. May be null.

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