Vector.Divide Method

Definition

Overloads

Divide<T>(Vector<T>, Vector<T>)

Returns a new vector whose values are the result of dividing the first vector's elements by the corresponding elements in the second vector.

Divide<T>(Vector<T>, T)

Divides a vector by a scalar to compute the per-element quotient.

Divide<T>(Vector<T>, Vector<T>)

Source:
Vector.cs
Source:
Vector.cs
Source:
Vector.cs

Returns a new vector whose values are the result of dividing the first vector's elements by the corresponding elements in the second vector.

C#
public static System.Numerics.Vector<T> Divide<T>(System.Numerics.Vector<T> left, System.Numerics.Vector<T> right) where T : struct;
C#
public static System.Numerics.Vector<T> Divide<T>(System.Numerics.Vector<T> left, System.Numerics.Vector<T> right);

Type Parameters

T

The vector type. T can be any primitive numeric type.

Parameters

left
Vector<T>

The first vector.

right
Vector<T>

The second vector.

Returns

The divided vector.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0

Divide<T>(Vector<T>, T)

Source:
Vector.cs
Source:
Vector.cs

Divides a vector by a scalar to compute the per-element quotient.

C#
public static System.Numerics.Vector<T> Divide<T>(System.Numerics.Vector<T> left, T right);

Type Parameters

T

The type of the elements in the vector.

Parameters

left
Vector<T>

The vector that will be divided by right.

right
T

The scalar that will divide left.

Returns

The quotient of left divided by right.

Applies to

.NET 10 and other versions
Product Versions
.NET 8, 9, 10