Documentation ¶
Index ¶
- Variables
- type Double
- func Cosh2(x Double) Double
- func DoubleFromFloat(x float64) Double
- func DoubleFromMul(a, b float64) Double
- func DoubleFromSqr(x float64) Double
- func DoubleFromSum(a, b float64) Double
- func Exp(x Double) Double
- func Ln2(x Double) Double
- func Pow22(base Double, exp Double) Double
- func Sinh2(x Double) Double
- func Sqr2(x Double) Double
- func Sqrt2(x Double) Double
- func (d Double) Abs() Double
- func (d Double) Add(x Double) Double
- func (d Double) Div(x Double) Double
- func (d Double) Equal(x Double) bool
- func (d Double) GE(x Double) bool
- func (d Double) GT(x Double) bool
- func (d Double) Inv() Double
- func (d Double) LE(x Double) bool
- func (d Double) LT(x Double) bool
- func (d Double) Mul(x Double) Double
- func (d Double) Neg() Double
- func (d Double) Sqr() Double
- func (d Double) Sub(x Double) Double
- func (d Double) ToFloat64() float64
- type Histogram
- type Uint128
- func (u Uint128) Add(x Uint128) Uint128
- func (u Uint128) AddCarry(x Uint128, carry uint64) (Uint128, uint64)
- func (u Uint128) And(x Uint128) Uint128
- func (u Uint128) Big() *big.Int
- func (u Uint128) Cmp(x Uint128) int
- func (u Uint128) Dec() Uint128
- func (u Uint128) Equals(x Uint128) bool
- func (u Uint128) Inc() Uint128
- func (u Uint128) IsZero() bool
- func (u Uint128) Lsh(n uint) Uint128
- func (u Uint128) Mul(x Uint128) Uint128
- func (a Uint128) MulFull(b Uint128) (Uint128, Uint128)
- func (u Uint128) Not() Uint128
- func (u Uint128) Or(x Uint128) Uint128
- func (u Uint128) Parts() (uint64, uint64)
- func (u Uint128) Rsh(n uint) Uint128
- func (u Uint128) String() string
- func (u Uint128) Sub(x Uint128) Uint128
- func (u Uint128) SubBorrow(x Uint128, borrow uint64) (Uint128, uint64)
- func (u Uint128) Xor(x Uint128) Uint128
- type Uint256
- func (u Uint256) Add(x Uint256) Uint256
- func (u Uint256) AddCarry(x Uint256, carry uint64) (Uint256, uint64)
- func (u Uint256) And(x Uint256) Uint256
- func (u Uint256) Big() *big.Int
- func (u Uint256) Cmp(x Uint256) int
- func (u Uint256) Dec() Uint256
- func (u Uint256) Equals(x Uint256) bool
- func (u Uint256) Inc() Uint256
- func (u Uint256) IsZero() bool
- func (u Uint256) Lsh(n uint) Uint256
- func (u Uint256) Mul(v Uint256) Uint256
- func (u Uint256) MulFull(x Uint256) (Uint256, Uint256)
- func (u Uint256) Not() Uint256
- func (u Uint256) Or(x Uint256) Uint256
- func (u Uint256) Parts() (Uint128, Uint128)
- func (u Uint256) Rsh(n uint) Uint256
- func (u Uint256) String() string
- func (u Uint256) Sub(x Uint256) Uint256
- func (u Uint256) SubBorrow(x Uint256, borrow uint64) (Uint256, uint64)
- func (u Uint256) Xor(x Uint256) Uint256
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DoubleZero = Double{/* contains filtered or unexported fields */} DoubleOne = Double{/* contains filtered or unexported fields */} DoubleInf = Double{/* contains filtered or unexported fields */} DoubleNegInf = Double{/* contains filtered or unexported fields */} DoubleNaN = Double{/* contains filtered or unexported fields */} DoublePi = Double{/* contains filtered or unexported fields */} DoubleTau = Double{/* contains filtered or unexported fields */} DoubleE = Double{/* contains filtered or unexported fields */} DoubleLog2 = Double{/* contains filtered or unexported fields */} DoublePhi = Double{/* contains filtered or unexported fields */} )
Double constants
Functions ¶
This section is empty.
Types ¶
type Double ¶
type Double struct {
// contains filtered or unexported fields
}
Double float by T.J. Dekker.
See: Dekker, T.J. A floating-point technique for extending the available precision. Numer. Math. 18, 224–242 (1971). https://doi.org/10.1007/BF01397083
func DoubleFromFloat ¶
func DoubleFromMul ¶
func DoubleFromSqr ¶
func DoubleFromSum ¶
type Histogram ¶
type Histogram struct {
// contains filtered or unexported fields
}
Histogram for floats. Based on https://github.com/valyala/histogram with small changes.
func MergeHistograms ¶
MergeHistograms returns 1 histogram built from the given.
type Uint128 ¶
type Uint128 struct {
// contains filtered or unexported fields
}
Uint128 represents a uint128 using 2 uint64.
func NewUint128 ¶
func Uint128FromString ¶
func Uint128FromUint64 ¶
type Uint256 ¶
type Uint256 struct {
// contains filtered or unexported fields
}
Uint256 represents a uint256 using 2 uint64.
func NewUint256 ¶
func Uint256FromUint64 ¶
Click to show internal directories.
Click to hide internal directories.