zx

package
v0.0.0-...-9e0f3af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2022 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(c []byte) *[761]int8

Decode unpacks an element of R packed by Encode.

func Encode

func Encode(f *[761]int8) *[191]byte

Encode packs an element of R into 191 bytes.

func RandomSmall

func RandomSmall(g *[761]int8, s io.Reader) error

RandomSmall returns a random small element of R. An element of R is small if all of its coefficients are in {-1,0,1}. Randomness is obtained from s.

func RandomTSmall

func RandomTSmall(f *[761]int8, s io.Reader) error

RandomTSmall returns a random t-small element of R. An element of R is t-small if exactly 2*t of its coefficients are nonzero. Randomness is obtained from s.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL