pub trait PlaintextVectorConversionEngine<Input, Output>: AbstractEnginewhere
    Input: PlaintextVectorEntity,
    Output: PlaintextVectorEntity,
{ fn convert_plaintext_vector(
        &mut self,
        input: &Input
    ) -> Result<Output, PlaintextVectorConversionError<Self::EngineError>>; unsafe fn convert_plaintext_vector_unchecked(
        &mut self,
        input: &Input
    ) -> Output; }
Expand description

A trait for engines converting plaintext vectors.

Semantics

This pure operation generates a plaintext vector containing the conversion of the input plaintext vector to a type with a different representation (for instance from cpu to gpu memory).

Formal Definition

Required Methods

Converts a plaintext vector.

Unsafely converts a plaintext vector.

Safety

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

Implementors