Constructors
constructor
- new GF256(primitive: number): 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
exp
-
Parameters
Returns number
inverse
- inverse(a: number): number
-
Parameters
Returns number
log
-
Parameters
Returns number
multiply
- multiply(a: number, b: number): number
-
Parameters
Returns number
Static addOrSubtract
- addOrSubtract(a: number, b: number): number
-
Parameters
Returns number