Table of Contents

Class MathOperators

Namespace
Zyl.VectorTraits.Numerics
Assembly
VectorTraits.dll

Math functions of operators (运算符的数学函数).

public static class MathOperators
Inheritance
MathOperators
Inherited Members

Remarks

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

Methods

BigMul(long, long, out long)

Produces the full product of two signed 64-bit numbers (生成两个有符号 64 位数的完整乘积).

BigMul(ulong, ulong)

Produces the full product of two unsigned 64-bit numbers.

BigMul(ulong, ulong, out ulong)

Produces the full product of two unsigned 64-bit numbers (生成两个无符号 64 位数的完整乘积).

BigMulHigh(long, long)

Computes the product of two signed 64-bit numbers and returns the higher 64 bits (计算两个有符号 64 位数的乘积,并返回较高的64位).

BigMulHigh(ulong, ulong)

Computes the product of two unsigned 64-bit numbers and returns the higher 64 bits (计算两个无符号 64 位数的乘积,并返回较高的64位).

BigMulLow(long, long)

Computes the product of two signed 64-bit numbers and returns the lower 64 bits (计算两个有符号 64 位数的乘积,并返回较低的64位).

BigMulLow(ulong, ulong)

Computes the product of two unsigned 64-bit numbers and returns the lower 64 bits (计算两个无符号 64 位数的乘积,并返回较低的64位).

BigMul_BigNum(long, long, out long)

Produces the full product of two signed 64-bit numbers - BigNum (生成两个有符号 64 位数的完整乘积 - 大数算法).

BigMul_BigNum(ulong, ulong, out ulong)

Produces the full product of two unsigned 64-bit numbers - BigNum (生成两个无符号 64 位数的完整乘积 - 大数算法).

BigMul_Two(long, long, out long)

Produces the full product of two signed 64-bit numbers - Two word (生成两个有符号 64 位数的完整乘积 - 双字).

BigMul_Two(ulong, ulong, out ulong)

Produces the full product of two unsigned 64-bit numbers - Two word (生成两个无符号 64 位数的完整乘积 - 双字).

BigNumMultiplySigned(Span<uint>, ReadOnlySpan<uint>, ReadOnlySpan<uint>)

Produces the full product of signed big numbers (产生有符号大数字的完整乘积) (w = u * v). Use little endian to store (使用小端存储).

BigNumMultiplyUnsigned(Span<uint>, ReadOnlySpan<uint>, ReadOnlySpan<uint>)

Produces the full product of unsigned big numbers (产生无符号大数字的完整乘积) (w = u * v). Use little endian to store (使用小端存储).

See Also

IMultiplyOperators<TSelf, TOther, TResult>
BitMath