poly_prod: Multiplication in polynomial representation

View source: R/galois_field.R

poly_prodR Documentation

Multiplication in polynomial representation

Description

Multiplication in polynomial representation

Usage

poly_prod(p, n, xton, p1, p2)

Arguments

p

modulus

n

length of polynomials

xton

characteristic polynomial vector for the field (x to the n power)

p1

polynomial vector 1

p2

polynomial vector 2

Value

the product of p1 and p2

Examples

gf <- create_galois_field(4)
a <- poly_prod(gf$p, gf$n, gf$xton, c(1, 0), c(0, 1))
stopifnot(all(a == c(0, 1)))

lhs documentation built on July 1, 2024, 1:06 a.m.