Method Sqrt
- Namespace
- Zyl.VectorTraits.Impl.AVector
- 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
Returns
- Vector<float>
A vector whose elements are the square root of the corresponding elements in
vector
(一个向量,其元素是vector
中对应元素的平方根).
- See Also
-
SquareRoot<T>(Vector<T>)
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
Returns
- Vector<double>
A vector whose elements are the square root of the corresponding elements in
vector
(一个向量,其元素是vector
中对应元素的平方根).
- See Also
-
SquareRoot<T>(Vector<T>)
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
Returns
- Vector<sbyte>
A vector whose elements are the square root of the corresponding elements in
vector
(一个向量,其元素是vector
中对应元素的平方根).
- See Also
-
SquareRoot<T>(Vector<T>)
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.
public static Vector<byte> Sqrt(Vector<byte> value)
Parameters
Returns
- Vector<byte>
A vector whose elements are the square root of the corresponding elements in
vector
(一个向量,其元素是vector
中对应元素的平方根).
- See Also
-
SquareRoot<T>(Vector<T>)
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
Returns
- Vector<short>
A vector whose elements are the square root of the corresponding elements in
vector
(一个向量,其元素是vector
中对应元素的平方根).
- See Also
-
SquareRoot<T>(Vector<T>)
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
Returns
- Vector<ushort>
A vector whose elements are the square root of the corresponding elements in
vector
(一个向量,其元素是vector
中对应元素的平方根).
- See Also
-
SquareRoot<T>(Vector<T>)
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
Returns
- Vector<int>
A vector whose elements are the square root of the corresponding elements in
vector
(一个向量,其元素是vector
中对应元素的平方根).
- See Also
-
SquareRoot<T>(Vector<T>)
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
Returns
- Vector<uint>
A vector whose elements are the square root of the corresponding elements in
vector
(一个向量,其元素是vector
中对应元素的平方根).
- See Also
-
SquareRoot<T>(Vector<T>)
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
Returns
- Vector<long>
A vector whose elements are the square root of the corresponding elements in
vector
(一个向量,其元素是vector
中对应元素的平方根).
- See Also
-
SquareRoot<T>(Vector<T>)
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
Returns
- Vector<ulong>
A vector whose elements are the square root of the corresponding elements in
vector
(一个向量,其元素是vector
中对应元素的平方根).
- See Also
-
SquareRoot<T>(Vector<T>)