pub trait PlaintextVectorDecodingEngine<EncoderVector, PlaintextVector, CleartextVector>: AbstractEnginewhere
EncoderVector: EncoderVectorEntity,
PlaintextVector: PlaintextVectorEntity,
CleartextVector: CleartextVectorEntity,{
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
sourcefn decode_plaintext_vector(
&mut self,
encoder: &EncoderVector,
input: &PlaintextVector
) -> Result<CleartextVector, PlaintextVectorDecodingError<Self::EngineError>>
fn decode_plaintext_vector(
&mut self,
encoder: &EncoderVector,
input: &PlaintextVector
) -> Result<CleartextVector, PlaintextVectorDecodingError<Self::EngineError>>
Decodes a plaintext vector.
sourceunsafe fn decode_plaintext_vector_unchecked(
&mut self,
encoder: &EncoderVector,
input: &PlaintextVector
) -> CleartextVector
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
impl PlaintextVectorDecodingEngine<FloatEncoderVector, PlaintextVector32, CleartextVectorF64> for DefaultEngine
Description:
Implementation of PlaintextVectorDecodingEngine
for DefaultEngine
that decodes 32 bits
integers to 64 bits floating point numbers.
impl PlaintextVectorDecodingEngine<FloatEncoderVector, PlaintextVector64, CleartextVectorF64> for DefaultEngine
Description:
Implementation of PlaintextVectorDecodingEngine
for DefaultEngine
that decodes 64 bits
integers to 64 bits floating point numbers.