Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

author

Sean Owen

Hierarchy

  • GenericGFPoly

Index

Constructors

constructor

  • throws

    IllegalArgumentException if argument is null or empty, or if leading coefficient is 0 and this is not a constant polynomial (that is, it is not the monomial "0")

    Parameters

    • field: AbstractGenericGF

      the GenericGF instance representing the field to use to perform computations

    • coefficients: Int32Array

      coefficients as ints representing elements of GF(size), arranged from most significant (highest-power term) coefficient to least significant

    Returns GenericGFPoly

Properties

Private coefficients

coefficients: Int32Array

Private field

Methods

addOrSubtract

divide

evaluateAt

  • evaluateAt(a: number): number

getCoefficient

  • getCoefficient(degree: number): number

getCoefficients

  • getCoefficients(): Int32Array

getDegree

  • getDegree(): number

isZero

  • isZero(): boolean

multiply

multiplyByMonomial

  • multiplyByMonomial(degree: number, coefficient: number): GenericGFPoly

multiplyScalar

toString

  • toString(): string

Generated using TypeDoc