Function guff_ida::vandermonde_matrix[][src]

pub fn vandermonde_matrix<G>(field: &G, k: usize, n: usize) -> Vec<G::E> where
    G: GaloisField,
    G::E: Into<usize>,
    G::EE: Into<usize>, 
Expand description

Vandermonde-form matrix

    |     0    1    2          k-1  |
    |    0    0    0   ...    0     |
    |                               |
    |     0    1    2          k-1  |
    |    1    1    1   ...    1     |
    |                               |
    |    :    :    :    :     :     |
    |                               |
    |     0    1    2          k-1  |
    |  n-1  n-1  n-1   ...  n-1     |

Can be used for Reed-Solomon coding, or a version of it, anyway. This is not the most general form of a Vandermonde matrix, but it is useful as a particular case since it doesn’t require any parameters to produce it.

Return is as a single vector of n rows, each of k elements