Table of Contents

Method Sqrt

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

Sqrt(Vector256<float>)

Computes the square root of a vector on a per-element basis (计算向量中每个元素的平方根). Mnemonic: rt[i] := sqrt(vector[i]) = pow(vector[i], 1.0/2). When x is less than 0, floating-point types return NaN, integer types return 0.

public static Vector256<float> Sqrt(Vector256<float> value)

Parameters

value Vector256<float>

Returns

Vector256<float>

A vector whose elements are the square root of the corresponding elements in vector (一个向量,其元素是 vector 中对应元素的平方根).

See Also

Sqrt(Vector256<double>)

Computes the square root of a vector on a per-element basis (计算向量中每个元素的平方根). Mnemonic: rt[i] := sqrt(vector[i]) = pow(vector[i], 1.0/2). When x is less than 0, floating-point types return NaN, integer types return 0.

public static Vector256<double> Sqrt(Vector256<double> value)

Parameters

value Vector256<double>

Returns

Vector256<double>

A vector whose elements are the square root of the corresponding elements in vector (一个向量,其元素是 vector 中对应元素的平方根).

See Also

Sqrt(Vector256<sbyte>)

Computes the square root of a vector on a per-element basis (计算向量中每个元素的平方根). Mnemonic: rt[i] := sqrt(vector[i]) = pow(vector[i], 1.0/2). When x is less than 0, floating-point types return NaN, integer types return 0.

[CLSCompliant(false)]
public static Vector256<sbyte> Sqrt(Vector256<sbyte> value)

Parameters

value Vector256<sbyte>

Returns

Vector256<sbyte>

A vector whose elements are the square root of the corresponding elements in vector (一个向量,其元素是 vector 中对应元素的平方根).

See Also

Sqrt(Vector256<byte>)

Computes the square root of a vector on a per-element basis (计算向量中每个元素的平方根). Mnemonic: rt[i] := sqrt(vector[i]) = pow(vector[i], 1.0/2). When x is less than 0, floating-point types return NaN, integer types return 0.

[CLSCompliant(false)]
public static Vector256<byte> Sqrt(Vector256<byte> value)

Parameters

value Vector256<byte>

Returns

Vector256<byte>

A vector whose elements are the square root of the corresponding elements in vector (一个向量,其元素是 vector 中对应元素的平方根).

See Also

Sqrt(Vector256<short>)

Computes the square root of a vector on a per-element basis (计算向量中每个元素的平方根). Mnemonic: rt[i] := sqrt(vector[i]) = pow(vector[i], 1.0/2). When x is less than 0, floating-point types return NaN, integer types return 0.

public static Vector256<short> Sqrt(Vector256<short> value)

Parameters

value Vector256<short>

Returns

Vector256<short>

A vector whose elements are the square root of the corresponding elements in vector (一个向量,其元素是 vector 中对应元素的平方根).

See Also

Sqrt(Vector256<ushort>)

Computes the square root of a vector on a per-element basis (计算向量中每个元素的平方根). Mnemonic: rt[i] := sqrt(vector[i]) = pow(vector[i], 1.0/2). When x is less than 0, floating-point types return NaN, integer types return 0.

[CLSCompliant(false)]
public static Vector256<ushort> Sqrt(Vector256<ushort> value)

Parameters

value Vector256<ushort>

Returns

Vector256<ushort>

A vector whose elements are the square root of the corresponding elements in vector (一个向量,其元素是 vector 中对应元素的平方根).

See Also

Sqrt(Vector256<int>)

Computes the square root of a vector on a per-element basis (计算向量中每个元素的平方根). Mnemonic: rt[i] := sqrt(vector[i]) = pow(vector[i], 1.0/2). When x is less than 0, floating-point types return NaN, integer types return 0.

public static Vector256<int> Sqrt(Vector256<int> value)

Parameters

value Vector256<int>

Returns

Vector256<int>

A vector whose elements are the square root of the corresponding elements in vector (一个向量,其元素是 vector 中对应元素的平方根).

See Also

Sqrt(Vector256<uint>)

Computes the square root of a vector on a per-element basis (计算向量中每个元素的平方根). Mnemonic: rt[i] := sqrt(vector[i]) = pow(vector[i], 1.0/2). When x is less than 0, floating-point types return NaN, integer types return 0.

[CLSCompliant(false)]
public static Vector256<uint> Sqrt(Vector256<uint> value)

Parameters

value Vector256<uint>

Returns

Vector256<uint>

A vector whose elements are the square root of the corresponding elements in vector (一个向量,其元素是 vector 中对应元素的平方根).

See Also

Sqrt(Vector256<long>)

Computes the square root of a vector on a per-element basis (计算向量中每个元素的平方根). Mnemonic: rt[i] := sqrt(vector[i]) = pow(vector[i], 1.0/2). When x is less than 0, floating-point types return NaN, integer types return 0.

public static Vector256<long> Sqrt(Vector256<long> value)

Parameters

value Vector256<long>

Returns

Vector256<long>

A vector whose elements are the square root of the corresponding elements in vector (一个向量,其元素是 vector 中对应元素的平方根).

See Also

Sqrt(Vector256<ulong>)

Computes the square root of a vector on a per-element basis (计算向量中每个元素的平方根). Mnemonic: rt[i] := sqrt(vector[i]) = pow(vector[i], 1.0/2). When x is less than 0, floating-point types return NaN, integer types return 0.

[CLSCompliant(false)]
public static Vector256<ulong> Sqrt(Vector256<ulong> value)

Parameters

value Vector256<ulong>

Returns

Vector256<ulong>

A vector whose elements are the square root of the corresponding elements in vector (一个向量,其元素是 vector 中对应元素的平方根).

See Also