final class F2Polynomial extends AnyRef
- Source
- F2Polynomial.scala
- Alphabetic
- By Inheritance
- F2Polynomial
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
F2Polynomial(value: String)
constructor from string of 0 and 1.
constructor from string of 0 and 1.
- value
a string consists of 0 and 1
-
new
F2Polynomial(value: String, radix: Int)
constructor from string with radix.
constructor from string with radix.
- value
a string consists of numbers of radix
- radix
radix of the number of val
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
add(that: F2Polynomial): F2Polynomial
Addition over F2[t].
Addition over F2[t].
- that
Polynomial
- returns
result of addition
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(obj: Any): Boolean
- Definition Classes
- F2Polynomial → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → 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.
- index
degree of term
- returns
coefficient of specified term
-
def
hashCode(): Int
- Definition Classes
- F2Polynomial → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mod(that: F2Polynomial): F2Polynomial
Calculate residue of this polynomial divided by that polynomial.
Calculate residue of this polynomial divided by that polynomial. Using means return this % that if this and that were int.
- that
divider
- returns
residue
-
def
mul(that: F2Polynomial): F2Polynomial
Multiplication over F2[t].
Multiplication over F2[t].
- that
Polynomial
- returns
result of multiplication
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
power(pow: BigInteger): F2Polynomial
power of this polynomial, thispow.
power of this polynomial, thispow.
- pow
exponent
- returns
thispow
-
def
powerMod(pow: BigInteger, mod: F2Polynomial): F2Polynomial
returns thispow % mod.
returns thispow % mod.
- pow
exponent
- mod
polynomial
- returns
polynomial whose degree is less than mod polynomial
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(base: Int): String
return base format representation of polynomial.
return base format representation of polynomial.
- base
base of format
- returns
base format string
-
def
toString(): String
return binary format representation of polynomial.
return binary format representation of polynomial.
- returns
binary format string
- Definition Classes
- F2Polynomial → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )