Table of Contents

Method Abs

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

Abs(Vector128<float>)

Computes the absolute value of each element in a vector (计算向量中每个元素的绝对值). Mnemonic: rt[i] := abs(vector[i]).

public static Vector128<float> Abs(Vector128<float> value)

Parameters

value Vector128<float>

Returns

Vector128<float>

A vector whose elements are the absolute value of the elements in vector (一个向量,其元素是 vector 中各元素的绝对值).

See Also
Abs<T>(Vector128<T>)

Abs(Vector128<double>)

Computes the absolute value of each element in a vector (计算向量中每个元素的绝对值). Mnemonic: rt[i] := abs(vector[i]).

public static Vector128<double> Abs(Vector128<double> value)

Parameters

value Vector128<double>

Returns

Vector128<double>

A vector whose elements are the absolute value of the elements in vector (一个向量,其元素是 vector 中各元素的绝对值).

See Also
Abs<T>(Vector128<T>)

Abs(Vector128<sbyte>)

Computes the absolute value of each element in a vector (计算向量中每个元素的绝对值). Mnemonic: rt[i] := abs(vector[i]).

[CLSCompliant(false)]
public static Vector128<sbyte> Abs(Vector128<sbyte> value)

Parameters

value Vector128<sbyte>

Returns

Vector128<sbyte>

A vector whose elements are the absolute value of the elements in vector (一个向量,其元素是 vector 中各元素的绝对值).

See Also
Abs<T>(Vector128<T>)

Abs(Vector128<short>)

Computes the absolute value of each element in a vector (计算向量中每个元素的绝对值). Mnemonic: rt[i] := abs(vector[i]).

public static Vector128<short> Abs(Vector128<short> value)

Parameters

value Vector128<short>

Returns

Vector128<short>

A vector whose elements are the absolute value of the elements in vector (一个向量,其元素是 vector 中各元素的绝对值).

See Also
Abs<T>(Vector128<T>)

Abs(Vector128<int>)

Computes the absolute value of each element in a vector (计算向量中每个元素的绝对值). Mnemonic: rt[i] := abs(vector[i]).

public static Vector128<int> Abs(Vector128<int> value)

Parameters

value Vector128<int>

Returns

Vector128<int>

A vector whose elements are the absolute value of the elements in vector (一个向量,其元素是 vector 中各元素的绝对值).

See Also
Abs<T>(Vector128<T>)

Abs(Vector128<long>)

Computes the absolute value of each element in a vector (计算向量中每个元素的绝对值). Mnemonic: rt[i] := abs(vector[i]).

public static Vector128<long> Abs(Vector128<long> value)

Parameters

value Vector128<long>

Returns

Vector128<long>

A vector whose elements are the absolute value of the elements in vector (一个向量,其元素是 vector 中各元素的绝对值).

See Also
Abs<T>(Vector128<T>)