Прочитај на енглеском Уреди

Делите путем


Vector256.Round Method

Definition

Overloads

Round(Vector256<Double>)
Round(Vector256<Single>)
Round(Vector256<Double>, MidpointRounding)

Rounds each element in a vector to the nearest integer using the specified rounding mode.

Round(Vector256<Single>, MidpointRounding)

Rounds each element in a vector to the nearest integer using the specified rounding mode.

Round(Vector256<Double>)

C#
public static System.Runtime.Intrinsics.Vector256<double> Round(System.Runtime.Intrinsics.Vector256<double> vector);

Parameters

vector
Vector256<Double>

Returns

Applies to

.NET 10 и .NET 9
Производ Верзије
.NET 9, 10

Round(Vector256<Single>)

C#
public static System.Runtime.Intrinsics.Vector256<float> Round(System.Runtime.Intrinsics.Vector256<float> vector);

Parameters

vector
Vector256<Single>

Returns

Applies to

.NET 10 и .NET 9
Производ Верзије
.NET 9, 10

Round(Vector256<Double>, MidpointRounding)

Rounds each element in a vector to the nearest integer using the specified rounding mode.

C#
public static System.Runtime.Intrinsics.Vector256<double> Round(System.Runtime.Intrinsics.Vector256<double> vector, MidpointRounding mode);

Parameters

vector
Vector256<Double>

The vector to round.

mode
MidpointRounding

The mode under which vector should be rounded.

Returns

The result of rounding each element in vector to the nearest integer using mode.

Applies to

.NET 10 и .NET 9
Производ Верзије
.NET 9, 10

Round(Vector256<Single>, MidpointRounding)

Rounds each element in a vector to the nearest integer using the specified rounding mode.

C#
public static System.Runtime.Intrinsics.Vector256<float> Round(System.Runtime.Intrinsics.Vector256<float> vector, MidpointRounding mode);

Parameters

vector
Vector256<Single>

The vector to round.

mode
MidpointRounding

The mode under which vector should be rounded.

Returns

The result of rounding each element in vector to the nearest integer using mode.

Applies to

.NET 10 и .NET 9
Производ Верзије
.NET 9, 10