Table of Contents

Class MathINumber

Namespace
Zyl.VectorTraits.Numerics
Assembly
VectorTraits.dll

Math functions of INumber<TSelf> (INumber 的数学函数).

public static class MathINumber
Inheritance
MathINumber
Inherited Members

Remarks

Referenced from generic math (参考了泛型数学): https://learn.microsoft.com/en-us/dotnet/standard/generics/math

Methods

Clamp(byte, byte, byte)

Returns value clamped to the inclusive range of amin and amax (返回限制在 aminamax 范围内的 value).

Clamp(double, double, double)

Returns value clamped to the inclusive range of amin and amax (返回限制在 aminamax 范围内的 value).

Clamp(Half, Half, Half)

Returns value clamped to the inclusive range of amin and amax (返回限制在 aminamax 范围内的 value).

Clamp(short, short, short)

Returns value clamped to the inclusive range of amin and amax (返回限制在 aminamax 范围内的 value).

Clamp(int, int, int)

Returns value clamped to the inclusive range of amin and amax (返回限制在 aminamax 范围内的 value).

Clamp(long, long, long)

Returns value clamped to the inclusive range of amin and amax (返回限制在 aminamax 范围内的 value).

Clamp(nint, nint, nint)

Returns value clamped to the inclusive range of amin and amax (返回限制在 aminamax 范围内的 value).

Clamp(sbyte, sbyte, sbyte)

Returns value clamped to the inclusive range of amin and amax (返回限制在 aminamax 范围内的 value).

Clamp(float, float, float)

Returns value clamped to the inclusive range of amin and amax (返回限制在 aminamax 范围内的 value).

Clamp(ushort, ushort, ushort)

Returns value clamped to the inclusive range of amin and amax (返回限制在 aminamax 范围内的 value).

Clamp(uint, uint, uint)

Returns value clamped to the inclusive range of amin and amax (返回限制在 aminamax 范围内的 value).

Clamp(ulong, ulong, ulong)

Returns value clamped to the inclusive range of amin and amax (返回限制在 aminamax 范围内的 value).

Clamp(nuint, nuint, nuint)

Returns value clamped to the inclusive range of amin and amax (返回限制在 aminamax 范围内的 value).

CopySign(double, double)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign(Half, Half)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign(short, short)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign(int, int)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign(long, long)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign(sbyte, sbyte)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign(float, float)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign_Bcl(double, double)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign_Bcl(Half, Half)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign_Bcl(short, short)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign_Bcl(int, int)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign_Bcl(long, long)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign_Bcl(sbyte, sbyte)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign_Bcl(float, float)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign_Bit(double, double)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign_Bit(Half, Half)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign_Bit(short, short)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign_Bit(int, int)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign_Bit(long, long)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign_Bit(sbyte, sbyte)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

CopySign_Bit(float, float)

Copies the sign of a value to the sign of another value (将一个值的符号复制到另一个值).

Max(byte, byte)

Get the larger of two variables (取得两个变量中较大的一个).

Max(double, double)

Get the larger of two variables (取得两个变量中较大的一个).

Max(Half, Half)

Get the larger of two variables (取得两个变量中较大的一个).

Max(Int128, Int128)

Get the larger of two variables (取得两个变量中较大的一个).

Max(short, short)

Get the larger of two variables (取得两个变量中较大的一个).

Max(int, int)

Get the larger of two variables (取得两个变量中较大的一个).

Max(long, long)

Get the larger of two variables (取得两个变量中较大的一个).

Max(nint, nint)

Get the larger of two variables (取得两个变量中较大的一个).

Max(sbyte, sbyte)

Get the larger of two variables (取得两个变量中较大的一个).

Max(float, float)

Get the larger of two variables (取得两个变量中较大的一个).

Max(UInt128, UInt128)

Get the larger of two variables (取得两个变量中较大的一个).

Max(ushort, ushort)

Get the larger of two variables (取得两个变量中较大的一个).

Max(uint, uint)

Get the larger of two variables (取得两个变量中较大的一个).

Max(ulong, ulong)

Get the larger of two variables (取得两个变量中较大的一个).

Max(nuint, nuint)

Get the larger of two variables (取得两个变量中较大的一个).

Max(ExInt128, ExInt128)

Get the larger of two variables (取得两个变量中较大的一个).

Max(ExUInt128, ExUInt128)

Get the larger of two variables (取得两个变量中较大的一个).

MaxNumber(double, double)

Compares two values to compute which is greater and returning the other value if an input is NaN (取得两个值中较大的数字. 若其中一个是NaN, 则会返回另一个值).

MaxNumber(Half, Half)

Compares two values to compute which is greater and returning the other value if an input is NaN (取得两个值中较大的数字. 若其中一个是NaN, 则会返回另一个值).

MaxNumber(float, float)

Compares two values to compute which is greater and returning the other value if an input is NaN (取得两个值中较大的数字. 若其中一个是NaN, 则会返回另一个值).

MaxNumber_Bcl(double, double)

Compares two values to compute which is greater and returning the other value if an input is NaN (取得两个值中较大的数字. 若其中一个是NaN, 则会返回另一个值).

MaxNumber_Bcl(Half, Half)

Compares two values to compute which is greater and returning the other value if an input is NaN (取得两个值中较大的数字. 若其中一个是NaN, 则会返回另一个值).

MaxNumber_Bcl(float, float)

Compares two values to compute which is greater and returning the other value if an input is NaN (取得两个值中较大的数字. 若其中一个是NaN, 则会返回另一个值).

MaxNumber_Bit(double, double)

Compares two values to compute which is greater and returning the other value if an input is NaN (取得两个值中较大的数字. 若其中一个是NaN, 则会返回另一个值).

MaxNumber_Bit(Half, Half)

Compares two values to compute which is greater and returning the other value if an input is NaN (取得两个值中较大的数字. 若其中一个是NaN, 则会返回另一个值).

MaxNumber_Bit(float, float)

Compares two values to compute which is greater and returning the other value if an input is NaN (取得两个值中较大的数字. 若其中一个是NaN, 则会返回另一个值).

Min(byte, byte)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(double, double)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(Half, Half)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(Int128, Int128)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(short, short)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(int, int)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(long, long)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(nint, nint)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(sbyte, sbyte)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(float, float)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(UInt128, UInt128)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(ushort, ushort)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(uint, uint)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(ulong, ulong)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(nuint, nuint)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(ExInt128, ExInt128)

Get the smaller of two variables (取得两个变量中较小的一个).

Min(ExUInt128, ExUInt128)

Get the smaller of two variables (取得两个变量中较小的一个).

MinNumber(double, double)

Compares two values to compute which is lesser and returning the other value if an input is NaN (取得两个值中较小的数字. 若其中一个是NaN, 则会返回另一个值).

MinNumber(Half, Half)

Compares two values to compute which is lesser and returning the other value if an input is NaN (取得两个值中较小的数字. 若其中一个是NaN, 则会返回另一个值).

MinNumber(float, float)

Compares two values to compute which is lesser and returning the other value if an input is NaN (取得两个值中较小的数字. 若其中一个是NaN, 则会返回另一个值).

MinNumber_Bcl(double, double)

Compares two values to compute which is lesser and returning the other value if an input is NaN (取得两个值中较小的数字. 若其中一个是NaN, 则会返回另一个值).

MinNumber_Bcl(Half, Half)

Compares two values to compute which is lesser and returning the other value if an input is NaN (取得两个值中较小的数字. 若其中一个是NaN, 则会返回另一个值).

MinNumber_Bcl(float, float)

Compares two values to compute which is lesser and returning the other value if an input is NaN (取得两个值中较小的数字. 若其中一个是NaN, 则会返回另一个值).

MinNumber_Bit(double, double)

Compares two values to compute which is lesser and returning the other value if an input is NaN (取得两个值中较小的数字. 若其中一个是NaN, 则会返回另一个值).

MinNumber_Bit(Half, Half)

Compares two values to compute which is lesser and returning the other value if an input is NaN (取得两个值中较小的数字. 若其中一个是NaN, 则会返回另一个值).

MinNumber_Bit(float, float)

Compares two values to compute which is lesser and returning the other value if an input is NaN (取得两个值中较小的数字. 若其中一个是NaN, 则会返回另一个值).

Sign(double)

Computes the sign of a value (计算值的符号).

Sign(Half)

Computes the sign of a value (计算值的符号).

Sign(short)

Computes the sign of a value (计算值的符号).

Sign(int)

Computes the sign of a value (计算值的符号).

Sign(long)

Computes the sign of a value (计算值的符号).

Sign(sbyte)

Computes the sign of a value (计算值的符号).

Sign(float)

Computes the sign of a value (计算值的符号).

SignFloat(double)

Computes the sign of a value and returns a floating point number (计算值的符号并返回浮点数).

SignFloat(Half)

Computes the sign of a value and returns a floating point number (计算值的符号并返回浮点数).

SignFloat(float)

Computes the sign of a value and returns a floating point number (计算值的符号并返回浮点数).

SignFloat_Bcl(double)

Computes the sign of a value and returns a floating point number (计算值的符号并返回浮点数).

SignFloat_Bcl(Half)

Computes the sign of a value and returns a floating point number (计算值的符号并返回浮点数).

SignFloat_Bcl(float)

Computes the sign of a value and returns a floating point number (计算值的符号并返回浮点数).

SignFloat_Bit(double)

Computes the sign of a value and returns a floating point number (计算值的符号并返回浮点数).

SignFloat_Bit(Half)

Computes the sign of a value and returns a floating point number (计算值的符号并返回浮点数).

SignFloat_Bit(float)

Computes the sign of a value and returns a floating point number (计算值的符号并返回浮点数).

Sign_Bcl(double)

Computes the sign of a value (计算值的符号).

Sign_Bcl(Half)

Computes the sign of a value (计算值的符号).

Sign_Bcl(short)

Computes the sign of a value (计算值的符号).

Sign_Bcl(int)

Computes the sign of a value (计算值的符号).

Sign_Bcl(long)

Computes the sign of a value (计算值的符号).

Sign_Bcl(sbyte)

Computes the sign of a value (计算值的符号).

Sign_Bcl(float)

Computes the sign of a value (计算值的符号).

Sign_Bit(double)

Computes the sign of a value (计算值的符号).

Sign_Bit(Half)

Computes the sign of a value (计算值的符号).

Sign_Bit(short)

Computes the sign of a value (计算值的符号).

Sign_Bit(int)

Computes the sign of a value (计算值的符号).

Sign_Bit(long)

Computes the sign of a value (计算值的符号).

Sign_Bit(sbyte)

Computes the sign of a value (计算值的符号).

Sign_Bit(float)

Computes the sign of a value (计算值的符号).

See Also

INumber<TSelf>
BitMath