[][src]Function isa_l::ec_init_tables_owned

#[must_use]pub fn ec_init_tables_owned(
    k: usize,
    rows: usize,
    encode_matrix: impl AsRef<[u8]>
) -> Vec<u8>

Initialize tables for fast Erasure Code encode and decode.

Generates the expanded tables needed for fast encode or decode for erasure codes on blocks of data. 32 bytes is generated for each input coefficient.

Arguments:

  • k: The number of vector sources or rows in the generator matrix for coding.
  • rows: The number of output vectors to concurrently encode/decode.
  • encode_matrix: The input coefficients used to encode or decode data.

Panics:

If the length of encode_matrix is not k * rows.