Swiftpack.co - Package - std-swift/FiniteField

FiniteField

Finite Fields in Swift

Importing

import FiniteField
dependencies: [
	.package(url: "https://github.com/std-swift/FiniteField.git",
	         from: "1.0.0")
],
targets: [
	.target(
		name: "",
		dependencies: [
			"FiniteField"
		]),
]

Using

FiniteFieldInteger is used to define finite fields containing Order integers starting from zero.

Sample declaration of a finite field of integers in the range 0..<31 backed by a UInt8:

struct FF_31: FiniteFieldInteger {
	static var Order = UInt8(31)
	var value: Element = 0
}

Github

link
Stars: 0
Help us keep the lights on

Used By

Total: 1