Table of Contents

Method Sqrt

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

Sqrt(Vector<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 Vector<float> Sqrt(Vector<float> value)

Parameters

value Vector<float>

Returns

Vector<float>

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

See Also

Sqrt(Vector<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 Vector<double> Sqrt(Vector<double> value)

Parameters

value Vector<double>

Returns

Vector<double>

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

See Also

Sqrt(Vector<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 Vector<sbyte> Sqrt(Vector<sbyte> value)

Parameters

value Vector<sbyte>

Returns

Vector<sbyte>

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

See Also

Sqrt(Vector<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 Vector<byte> Sqrt(Vector<byte> value)

Parameters

value Vector<byte>

Returns

Vector<byte>

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

See Also

Sqrt(Vector<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 Vector<short> Sqrt(Vector<short> value)

Parameters

value Vector<short>

Returns

Vector<short>

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

See Also

Sqrt(Vector<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 Vector<ushort> Sqrt(Vector<ushort> value)

Parameters

value Vector<ushort>

Returns

Vector<ushort>

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

See Also

Sqrt(Vector<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 Vector<int> Sqrt(Vector<int> value)

Parameters

value Vector<int>

Returns

Vector<int>

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

See Also

Sqrt(Vector<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 Vector<uint> Sqrt(Vector<uint> value)

Parameters

value Vector<uint>

Returns

Vector<uint>

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

See Also

Sqrt(Vector<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 Vector<long> Sqrt(Vector<long> value)

Parameters

value Vector<long>

Returns

Vector<long>

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

See Also

Sqrt(Vector<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 Vector<ulong> Sqrt(Vector<ulong> value)

Parameters

value Vector<ulong>

Returns

Vector<ulong>

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

See Also