Hierarchy

  • GF256

Index

Constructors

constructor

  • new GF256(primitive: number): GF256
  • Parameters

    • primitive: number

    Returns GF256

Properties

Static DATA_MATRIX_FIELD

DATA_MATRIX_FIELD: GF256 = new GF256(301)

Static QR_CODE_FIELD

QR_CODE_FIELD: GF256 = new GF256(285)

Methods

buildMonomial

  • buildMonomial(degree: number, coefficient: number): GF256Poly
  • Parameters

    • degree: number
    • coefficient: number

    Returns GF256Poly

exp

  • exp(a: number): number
  • Parameters

    • a: number

    Returns number

getOne

getZero

inverse

  • inverse(a: number): number
  • Parameters

    • a: number

    Returns number

log

  • log(a: number): number
  • Parameters

    • a: number

    Returns number

multiply

  • multiply(a: number, b: number): number
  • Parameters

    • a: number
    • b: number

    Returns number

Static addOrSubtract

  • addOrSubtract(a: number, b: number): number
  • Parameters

    • a: number
    • b: number

    Returns number

Generated using TypeDoc