quantized_to_linear_operator

Function quantized_to_linear_operator 

Source
pub fn quantized_to_linear_operator<F>(
    op: &QuantizedMatrixFreeOp<F>,
) -> LinearOperator<F>
where F: Float + NumAssign + Zero + Sum + One + ScalarOperand + Send + Sync + Debug + 'static,
Expand description

Convert a QuantizedMatrixFreeOp to a generic LinearOperator

This is useful when you want to use the quantized operator with algorithms that expect a LinearOperator.

§Arguments

  • op - The quantized matrix-free operator

§Returns

A LinearOperator that wraps the quantized operator