Documentation ¶
Index ¶
- Constants
- func Modulus() *big.Int
- type SmallRational
- func (z *SmallRational) Add(x, y *SmallRational) *SmallRational
- func (z *SmallRational) BigInt(*big.Int) *big.Int
- func (z *SmallRational) Bytes() [Bytes]byte
- func (z *SmallRational) Cmp(x *SmallRational) int
- func (z *SmallRational) Double(x *SmallRational) *SmallRational
- func (z *SmallRational) Equal(x *SmallRational) bool
- func (z *SmallRational) Inverse(x *SmallRational) *SmallRational
- func (z *SmallRational) IsOne() bool
- func (z *SmallRational) IsZero() bool
- func (z *SmallRational) MarshalJSON() ([]byte, error)
- func (z *SmallRational) Mul(x, y *SmallRational) *SmallRational
- func (z *SmallRational) Neg(x *SmallRational) *SmallRational
- func (z *SmallRational) Set(x *SmallRational) *SmallRational
- func (z *SmallRational) SetBytes(b []byte)
- func (z *SmallRational) SetInt64(i int64) *SmallRational
- func (z *SmallRational) SetInterface(x interface{}) (*SmallRational, error)
- func (z *SmallRational) SetOne() *SmallRational
- func (z *SmallRational) SetRandom() (*SmallRational, error)
- func (z *SmallRational) SetUint64(i uint64)
- func (z *SmallRational) SetZero() *SmallRational
- func (z *SmallRational) Sign() int
- func (z *SmallRational) Square(x *SmallRational) *SmallRational
- func (z *SmallRational) String() string
- func (z *SmallRational) Sub(x, y *SmallRational) *SmallRational
- func (z *SmallRational) Text(base int) string
- func (z *SmallRational) UnmarshalJson(data []byte) error
- func (z *SmallRational) UpdateText()
Constants ¶
View Source
const Bytes = 64
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SmallRational ¶
type SmallRational struct {
// contains filtered or unexported fields
}
func BatchInvert ¶
func BatchInvert(a []SmallRational) []SmallRational
func (*SmallRational) Add ¶
func (z *SmallRational) Add(x, y *SmallRational) *SmallRational
func (*SmallRational) Bytes ¶
func (z *SmallRational) Bytes() [Bytes]byte
func (*SmallRational) Cmp ¶
func (z *SmallRational) Cmp(x *SmallRational) int
func (*SmallRational) Double ¶
func (z *SmallRational) Double(x *SmallRational) *SmallRational
func (*SmallRational) Equal ¶
func (z *SmallRational) Equal(x *SmallRational) bool
func (*SmallRational) Inverse ¶
func (z *SmallRational) Inverse(x *SmallRational) *SmallRational
func (*SmallRational) IsOne ¶
func (z *SmallRational) IsOne() bool
func (*SmallRational) IsZero ¶
func (z *SmallRational) IsZero() bool
func (*SmallRational) MarshalJSON ¶
func (z *SmallRational) MarshalJSON() ([]byte, error)
func (*SmallRational) Mul ¶
func (z *SmallRational) Mul(x, y *SmallRational) *SmallRational
func (*SmallRational) Neg ¶
func (z *SmallRational) Neg(x *SmallRational) *SmallRational
func (*SmallRational) Set ¶
func (z *SmallRational) Set(x *SmallRational) *SmallRational
func (*SmallRational) SetBytes ¶
func (z *SmallRational) SetBytes(b []byte)
func (*SmallRational) SetInt64 ¶
func (z *SmallRational) SetInt64(i int64) *SmallRational
func (*SmallRational) SetInterface ¶
func (z *SmallRational) SetInterface(x interface{}) (*SmallRational, error)
func (*SmallRational) SetOne ¶
func (z *SmallRational) SetOne() *SmallRational
func (*SmallRational) SetRandom ¶
func (z *SmallRational) SetRandom() (*SmallRational, error)
func (*SmallRational) SetUint64 ¶
func (z *SmallRational) SetUint64(i uint64)
func (*SmallRational) SetZero ¶
func (z *SmallRational) SetZero() *SmallRational
func (*SmallRational) Sign ¶
func (z *SmallRational) Sign() int
func (*SmallRational) Square ¶
func (z *SmallRational) Square(x *SmallRational) *SmallRational
func (*SmallRational) String ¶
func (z *SmallRational) String() string
func (*SmallRational) Sub ¶
func (z *SmallRational) Sub(x, y *SmallRational) *SmallRational
func (*SmallRational) Text ¶
func (z *SmallRational) Text(base int) string
func (*SmallRational) UnmarshalJson ¶
func (z *SmallRational) UnmarshalJson(data []byte) error
func (*SmallRational) UpdateText ¶
func (z *SmallRational) UpdateText()
Directories ¶
Path | Synopsis |
---|---|
Package polynomial provides polynomial methods and commitment schemes.
|
Package polynomial provides polynomial methods and commitment schemes. |
Click to show internal directories.
Click to hide internal directories.