PlaintextVectorDecodingEngine

Trait PlaintextVectorDecodingEngine 

Source
pub trait PlaintextVectorDecodingEngine<EncoderVector, PlaintextVector, CleartextVector>: AbstractEngine
where EncoderVector: EncoderVectorEntity, PlaintextVector: PlaintextVectorEntity, CleartextVector: CleartextVectorEntity,
{ // Required methods fn decode_plaintext_vector( &mut self, encoder: &EncoderVector, input: &PlaintextVector, ) -> Result<CleartextVector, PlaintextVectorDecodingError<Self::EngineError>>; unsafe fn decode_plaintext_vector_unchecked( &mut self, encoder: &EncoderVector, input: &PlaintextVector, ) -> CleartextVector; }
Expand description

A trait for engines decoding plaintext vectors.

§Semantics

This pure operation generates a cleartext vector containing the element-wise decodings of the input plaintext vector, under the encoder encoder vector.

§Formal Definition

Required Methods§

Source

fn decode_plaintext_vector( &mut self, encoder: &EncoderVector, input: &PlaintextVector, ) -> Result<CleartextVector, PlaintextVectorDecodingError<Self::EngineError>>

Decodes a plaintext vector.

Source

unsafe fn decode_plaintext_vector_unchecked( &mut self, encoder: &EncoderVector, input: &PlaintextVector, ) -> CleartextVector

Unsafely decodes a plaintext vector.

§Safety

For the general safety concerns regarding this operation, refer to the different variants of PlaintextVectorDecodingError. For safety concerns specific to an engine, refer to the implementer safety section.

Implementors§

Source§

impl PlaintextVectorDecodingEngine<FloatEncoderVector, PlaintextVector32, CleartextVectorF64> for DefaultEngine

§Description:

Implementation of PlaintextVectorDecodingEngine for DefaultEngine that decodes 32 bits integers to 64 bits floating point numbers.

Source§

impl PlaintextVectorDecodingEngine<FloatEncoderVector, PlaintextVector64, CleartextVectorF64> for DefaultEngine

§Description:

Implementation of PlaintextVectorDecodingEngine for DefaultEngine that decodes 64 bits integers to 64 bits floating point numbers.