F2Polynomial

final
Value Params
pol

internal representation of polynomial.

Companion
object
class Object
trait Matchable
class Any

Value members

Constructors

def this(value: String, radix: Int)

constructor from string with radix.

constructor from string with radix.

Value Params
radix

radix of the number of val

value

a string consists of numbers of radix

def this(value: String)

constructor from string of 0 and 1.

constructor from string of 0 and 1.

Value Params
value

a string consists of 0 and 1

Concrete methods

Addition over F2[t].

Addition over F2[t].

Value Params
that

Polynomial

Returns

result of addition

def degree: Int

If zero, this method returns -1, otherwise, returns the degree of polynomial.

If zero, this method returns -1, otherwise, returns the degree of polynomial.

Returns

degree of this polynomial

override
def equals(obj: Any): Boolean
Definition Classes
Any
def getCoefficient(index: Int): Int

return coefficient of specified term, returned value is zero or one.

return coefficient of specified term, returned value is zero or one.

Value Params
index

degree of term

Returns

coefficient of specified term

override
def hashCode: Int
Definition Classes
Any

Calculate residue of this polynomial divided by that polynomial. Using means return this % that if this and that were int.

Calculate residue of this polynomial divided by that polynomial. Using means return this % that if this and that were int.

Value Params
that

divider

Returns

residue

Multiplication over F2[t].

Multiplication over F2[t].

Value Params
that

Polynomial

Returns

result of multiplication

def power(pow: BigInteger): F2Polynomial

power of this polynomial, thispow.

power of this polynomial, thispow.

Value Params
pow

exponent

Returns

thispow

def powerMod(pow: BigInteger, mod: F2Polynomial): F2Polynomial

returns thispow % mod.

returns thispow % mod.

Value Params
mod

polynomial

pow

exponent

Returns

polynomial whose degree is less than mod polynomial

override
def toString: String

return binary format representation of polynomial.

return binary format representation of polynomial.

Returns

binary format string

Definition Classes
Any
def toString(base: Int): String

return base format representation of polynomial.

return base format representation of polynomial.

Value Params
base

base of format

Returns

base format string