From ae74fabae2ee667acb7f8306c6618a018f99f93d Mon Sep 17 00:00:00 2001 From: Fabian Boemer Date: Fri, 15 Nov 2024 08:23:04 -0800 Subject: [PATCH] Fix some typos in RnsTool --- Sources/HomomorphicEncryption/RnsTool.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/HomomorphicEncryption/RnsTool.swift b/Sources/HomomorphicEncryption/RnsTool.swift index 03e3c676..de884470 100644 --- a/Sources/HomomorphicEncryption/RnsTool.swift +++ b/Sources/HomomorphicEncryption/RnsTool.swift @@ -38,13 +38,13 @@ package struct RnsTool: Sendable { @usableFromInline let mTildeModQ: [T] /// `-(Q^{-1}) mod {t, gamma}`. @usableFromInline let negInverseQModTGamma: [T] - /// `|gamma * t|_qi``. + /// `|gamma * t|_qi`. @usableFromInline let prodGammaTModQ: [T] /// Multiplication by `m_tilde^{-1} mod B_sk`, mod `B_sk`. @usableFromInline let inverseMTildeModBSk: [MultiplyConstantModulus] /// Multiplication by `Q^{-1} mod B_sk`, mod `B_sk`. @usableFromInline let inverseQModBSk: [MultiplyConstantModulus] - /// i'th entry stores modulus for multiplcaiton by `floor(Q / t_0) % q_i`, mod `q_i` + /// i'th entry stores modulus for multiplication by `floor(Q / t_0) % q_i`, mod `q_i` /// Also called `delta` in the literature. @usableFromInline let qDivT: [MultiplyConstantModulus] /// Multiplication by `Q mod B_sk`, mod `B_sk`. @@ -302,7 +302,7 @@ package struct RnsTool: Sendable { /// /// The output will be `(floor(x/q) + a_x) % B_sk`, where `a_x \in [-(L-1), L-1]` /// - Parameter poly: Polynomial with base `[q, Bsk]`. - /// - Returns: Polynomial in base `[Bsk]``. + /// - Returns: Polynomial in base `[Bsk]`. /// - Throws: Error upon failure to compute the approximate floor. /// - seealso: Section 4.3 of . @inlinable