Table of Contents

Method Sqrt

Namespace
Zyl.VectorTraits.Impl
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.

Vector<float> Sqrt(Vector<float> vector)

Parameters

vector Vector<float>

The vector whose square root is to be computed (将被计算其平方根的向量).

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.

Vector<double> Sqrt(Vector<double> vector)

Parameters

vector Vector<double>

The vector whose square root is to be computed (将被计算其平方根的向量).

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.

Vector<sbyte> Sqrt(Vector<sbyte> vector)

Parameters

vector Vector<sbyte>

The vector whose square root is to be computed (将被计算其平方根的向量).

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.

Vector<byte> Sqrt(Vector<byte> vector)

Parameters

vector Vector<byte>

The vector whose square root is to be computed (将被计算其平方根的向量).

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.

Vector<short> Sqrt(Vector<short> vector)

Parameters

vector Vector<short>

The vector whose square root is to be computed (将被计算其平方根的向量).

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.

Vector<ushort> Sqrt(Vector<ushort> vector)

Parameters

vector Vector<ushort>

The vector whose square root is to be computed (将被计算其平方根的向量).

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.

Vector<int> Sqrt(Vector<int> vector)

Parameters

vector Vector<int>

The vector whose square root is to be computed (将被计算其平方根的向量).

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.

Vector<uint> Sqrt(Vector<uint> vector)

Parameters

vector Vector<uint>

The vector whose square root is to be computed (将被计算其平方根的向量).

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.

Vector<long> Sqrt(Vector<long> vector)

Parameters

vector Vector<long>

The vector whose square root is to be computed (将被计算其平方根的向量).

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.

Vector<ulong> Sqrt(Vector<ulong> vector)

Parameters

vector Vector<ulong>

The vector whose square root is to be computed (将被计算其平方根的向量).

Returns

Vector<ulong>

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

See Also