Infos

Trait Infos 

Source
pub trait Infos {
    type Inner: ZnxInfos;

    // Required methods
    fn inner(&self) -> &Self::Inner;
    fn basek(&self) -> usize;
    fn k(&self) -> usize;

    // Provided methods
    fn n(&self) -> usize { ... }
    fn log_n(&self) -> usize { ... }
    fn rows(&self) -> usize { ... }
    fn cols(&self) -> usize { ... }
    fn rank(&self) -> usize { ... }
    fn size(&self) -> usize { ... }
    fn poly_count(&self) -> usize { ... }
}

Required Associated Types§

Required Methods§

Source

fn inner(&self) -> &Self::Inner

Source

fn basek(&self) -> usize

Returns the base 2 logarithm of the ciphertext base.

Source

fn k(&self) -> usize

Returns the bit precision of the ciphertext.

Provided Methods§

Source

fn n(&self) -> usize

Returns the ring degree of the polynomials.

Source

fn log_n(&self) -> usize

Returns the base two logarithm of the ring dimension of the polynomials.

Source

fn rows(&self) -> usize

Returns the number of rows.

Source

fn cols(&self) -> usize

Returns the number of polynomials in each row.

Source

fn rank(&self) -> usize

Source

fn size(&self) -> usize

Returns the number of size per polynomial.

Source

fn poly_count(&self) -> usize

Returns the total number of small polynomials.

Implementors§

Source§

impl<D: Data> Infos for GGLWEAutomorphismKeyCompressed<D>

Source§

impl<D: Data> Infos for GGLWECiphertextCompressed<D>

Source§

impl<D: Data> Infos for GGLWESwitchingKeyCompressed<D>

Source§

impl<D: Data> Infos for GGLWETensorKeyCompressed<D>

Source§

impl<D: Data> Infos for GGSWCiphertextCompressed<D>

Source§

impl<D: Data> Infos for GLWECiphertextCompressed<D>

Source§

impl<D: Data> Infos for GLWEToLWESwitchingKeyCompressed<D>

Source§

impl<D: Data> Infos for LWECiphertextCompressed<D>
where VecZnx<D>: ZnxInfos,

Source§

impl<D: Data> Infos for LWESwitchingKeyCompressed<D>

Source§

impl<D: Data> Infos for LWEToGLWESwitchingKeyCompressed<D>

Source§

impl<D: Data> Infos for GGLWEAutomorphismKey<D>

Source§

impl<D: Data> Infos for GGLWECiphertext<D>

Source§

impl<D: Data> Infos for GGLWESwitchingKey<D>

Source§

impl<D: Data> Infos for GGLWETensorKey<D>

Source§

impl<D: Data> Infos for GGSWCiphertext<D>

Source§

impl<D: Data> Infos for GLWECiphertext<D>

Source§

impl<D: Data> Infos for GLWEPlaintext<D>

Source§

impl<D: Data> Infos for GLWEPublicKey<D>

Source§

impl<D: Data> Infos for GLWEToLWESwitchingKey<D>

Source§

impl<D: Data> Infos for LWECiphertext<D>
where Zn<D>: ZnxInfos,

Source§

type Inner = Zn<D>

Source§

impl<D: Data> Infos for LWEPlaintext<D>

Source§

type Inner = Zn<D>

Source§

impl<D: Data> Infos for LWESwitchingKey<D>

Source§

impl<D: Data> Infos for LWEToGLWESwitchingKey<D>

Source§

impl<D: Data, B: Backend> Infos for GGLWEAutomorphismKeyPrepared<D, B>

Source§

type Inner = VmpPMat<D, B>

Source§

impl<D: Data, B: Backend> Infos for GGLWECiphertextPrepared<D, B>

Source§

type Inner = VmpPMat<D, B>

Source§

impl<D: Data, B: Backend> Infos for GGLWESwitchingKeyPrepared<D, B>

Source§

type Inner = VmpPMat<D, B>

Source§

impl<D: Data, B: Backend> Infos for GGLWETensorKeyPrepared<D, B>

Source§

type Inner = VmpPMat<D, B>

Source§

impl<D: Data, B: Backend> Infos for GGSWCiphertextPrepared<D, B>

Source§

type Inner = VmpPMat<D, B>

Source§

impl<D: Data, B: Backend> Infos for GLWEPublicKeyPrepared<D, B>

Source§

impl<D: Data, B: Backend> Infos for GLWEToLWESwitchingKeyPrepared<D, B>

Source§

type Inner = VmpPMat<D, B>

Source§

impl<D: Data, B: Backend> Infos for LWESwitchingKeyPrepared<D, B>

Source§

type Inner = VmpPMat<D, B>

Source§

impl<D: Data, B: Backend> Infos for LWEToGLWESwitchingKeyPrepared<D, B>

Source§

type Inner = VmpPMat<D, B>