RP
public struct RP : CustomStringConvertible, Equatable
RP instances contain reduction polynomials like x^m + x^k3 + x^k2 + x^k1 + 1 where m > k3 > k2 > k1 > 0 or x^m + x^k1 + 1 where m > k1 > 0
-
Creates a reduction polynomial x^m + x^k3 + x^k2 + x^k1 + 1
Declaration
Swift
public init(_ m: Int, _ k3: Int, _ k2: Int, _ k1: Int)Parameters
mThe m exponent
k3The k3 exponent
k2The k2 exponent
k1The k1 exponent
-
Creates a reduction polynomial x^m + x^k1 + 1
Declaration
Swift
public init(_ m: Int, _ k1: Int)Parameters
mThe m exponent
k1The k3 exponent
-
The m exponent
Declaration
Swift
public let m: Int -
The k3 exponent
Declaration
Swift
public let k3: Int -
The k2 exponent
Declaration
Swift
public let k2: Int -
The k1 exponent
Declaration
Swift
public let k1: Int -
The reduction polynomial as a BInt
Declaration
Swift
public let p: BInt
-
Textual description of self
Declaration
Swift
public var description: String { get }
-
Tests equality of reduction polynomials
Declaration
Swift
public static func == (rp1: RP, rp2: RP) -> BoolParameters
rp1First reduction polynomial
rp2Second reduction polynomial
Return Value
true iff rp1 = rp2
RP Structure Reference