Table of Contents

Method Abs

Namespace
Zyl.VectorTraits.Impl
Assembly
VectorTraits.dll

Abs(Vector256<float>)

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

Vector256<float> Abs(Vector256<float> vector)

Parameters

vector Vector256<float>

The vector that will have its absolute value computed (将被计算其绝对值的向量).

Returns

Vector256<float>

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

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

Abs(Vector256<double>)

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

Vector256<double> Abs(Vector256<double> vector)

Parameters

vector Vector256<double>

The vector that will have its absolute value computed (将被计算其绝对值的向量).

Returns

Vector256<double>

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

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

Abs(Vector256<sbyte>)

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

Vector256<sbyte> Abs(Vector256<sbyte> vector)

Parameters

vector Vector256<sbyte>

The vector that will have its absolute value computed (将被计算其绝对值的向量).

Returns

Vector256<sbyte>

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

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

Abs(Vector256<short>)

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

Vector256<short> Abs(Vector256<short> vector)

Parameters

vector Vector256<short>

The vector that will have its absolute value computed (将被计算其绝对值的向量).

Returns

Vector256<short>

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

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

Abs(Vector256<int>)

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

Vector256<int> Abs(Vector256<int> vector)

Parameters

vector Vector256<int>

The vector that will have its absolute value computed (将被计算其绝对值的向量).

Returns

Vector256<int>

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

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

Abs(Vector256<long>)

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

Vector256<long> Abs(Vector256<long> vector)

Parameters

vector Vector256<long>

The vector that will have its absolute value computed (将被计算其绝对值的向量).

Returns

Vector256<long>

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

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