struct Goban::ECC::GFPoly

Included Modules

Defined in:

goban/ecc/gfpoly.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(data : Slice(UInt8), truncate = true) #

[View source]

Class Method Detail

def self.build_mono(degree : Int, coeff : UInt8) #

[View source]
def self.one #

[View source]
def self.zero #

[View source]

Instance Method Detail

def add_or_sub(other : Indexable(UInt8)) #

[View source]
def data : Slice(UInt8) #

[View source]
def degree #

[View source]
def div(other : Indexable(UInt8)) #

[View source]
def div2(other : Indexable(UInt8)) #

[View source]
def eval(x : Int) #

[View source]
def get_coeff(degree : Int) #

[View source]
def is_zero? #

[View source]
def mul(other : Indexable(UInt8)) #

[View source]
def scale(x : Int) #

[View source]
def size(*args, **options) #

[View source]
def size(*args, **options, &) #

[View source]
def unsafe_fetch(*args, **options) #

[View source]
def unsafe_fetch(*args, **options, &) #

[View source]
def unsafe_put(*args, **options) #

[View source]
def unsafe_put(*args, **options, &) #

[View source]