GenericGF

class GenericGF(primitive: Int, val size: Int, val generatorBase: Int)

This class contains utility methods for performing mathematical operations over the Galois Fields. Operations use a given primitive polynomial in calculations.

Throughout this package, elements of the GF are represented as an int for convenience and speed (but at the cost of memory).

Constructors

Link copied to clipboard
constructor(primitive: Int, size: Int, generatorBase: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: Int
Link copied to clipboard

Functions

Link copied to clipboard
fun buildMonomial(degree: Int, coefficient: Int): GenericGFPoly
Link copied to clipboard
fun exp(a: Int): Int
Link copied to clipboard
fun inverse(a: Int): Int
Link copied to clipboard
fun log(a: Int): Int
Link copied to clipboard
fun multiply(a: Int, b: Int): Int
Link copied to clipboard
open override fun toString(): String