Język

Vector256.Max<T>(Vector256<T>, Vector256<T>) Metoda

Definicja

Oblicza maksymalnie dwa wektory na podstawie poszczególnych elementów.

public:
generic <typename T>
 static System::Runtime::Intrinsics::Vector256<T> Max(System::Runtime::Intrinsics::Vector256<T> left, System::Runtime::Intrinsics::Vector256<T> right);
public:
generic <typename T>
 where T : value class static System::Runtime::Intrinsics::Vector256<T> Max(System::Runtime::Intrinsics::Vector256<T> left, System::Runtime::Intrinsics::Vector256<T> right);
public static System.Runtime.Intrinsics.Vector256<T> Max<T>(System.Runtime.Intrinsics.Vector256<T> left, System.Runtime.Intrinsics.Vector256<T> right);
public static System.Runtime.Intrinsics.Vector256<T> Max<T>(System.Runtime.Intrinsics.Vector256<T> left, System.Runtime.Intrinsics.Vector256<T> right) where T : struct;
static member Max : System.Runtime.Intrinsics.Vector256<'T> * System.Runtime.Intrinsics.Vector256<'T> -> System.Runtime.Intrinsics.Vector256<'T>
static member Max : System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> * System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> -> System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> (requires 'T : struct)
Public Function Max(Of T) (left As Vector256(Of T), right As Vector256(Of T)) As Vector256(Of T)
Public Function Max(Of T As Structure) (left As Vector256(Of T), right As Vector256(Of T)) As Vector256(Of T)

Parametry typu

T

Typ elementów w wektorze.

Parametry

left
Vector256<T>

Wektor do porównania z right.

right
Vector256<T>

Wektor do porównania z left.

Zwraca

Wektor, którego elementy są maksymalną wartością odpowiadających im elementów w elementach left i right.

Wyjątki

Typ left i right (T) nie jest obsługiwany.

Uwagi

W przypadku IFloatingPoint<TSelf>metody ta metoda jest zgodna z funkcją IEEE 754:2019 maximum . Wymaga to propagacji danych wejściowych NaN z powrotem do elementu wywołującego i do -0.0 traktowania ich jako mniejszej niż +0.0.

Dotyczy