GenericGFPoly

class GenericGFPoly(field: GenericGF, coefficients: IntArray)

Represents a polynomial whose coefficients are elements of a GF. Instances of this class are immutable.

Much credit is due to William Rucklidge since portions of this code are an indirect port of his C++ Reed-Solomon implementation.

Constructors

Link copied to clipboard
constructor(field: GenericGF, coefficients: IntArray)

Properties

Link copied to clipboard
Link copied to clipboard
val degree: Int
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun evaluateAt(a: Int): Int
Link copied to clipboard
fun getCoefficient(degree: Int): Int
Link copied to clipboard
Link copied to clipboard
fun multiplyByMonomial(degree: Int, coefficient: Int): GenericGFPoly
Link copied to clipboard
open override fun toString(): String