M4RIE
0.20111004
|
Functions | |
static void | mzd_poly_randomize (mzd_poly_t *A) |
Fill matrix A with random elements. More... | |
void | mzd_slice_set_ui (mzd_slice_t *A, word value) |
Return diagonal matrix with value on the diagonal. More... | |
static word | mzd_slice_read_elem (const mzd_slice_t *A, const rci_t row, const rci_t col) |
Get the element at position (row,col) from the matrix A. More... | |
static void | mzd_slice_add_elem (mzd_slice_t *A, const rci_t row, const rci_t col, word elem) |
At the element elem to the element at position (row,col) in the matrix A. More... | |
static void | mzd_slice_write_elem (mzd_slice_t *A, const rci_t row, const rci_t col, word elem) |
Write the element elem to the position (row,col) in the matrix A. More... | |
static void | mzd_slice_randomize (mzd_slice_t *A) |
Fill matrix A with random elements. More... | |
void | mzed_randomize (mzed_t *A) |
Fill matrix A with random elements. More... | |
mzed_t * | mzed_copy (mzed_t *B, const mzed_t *A) |
Copy matrix A to B. More... | |
void | mzed_set_ui (mzed_t *A, word value) |
Return diagonal matrix with value on the diagonal. More... | |
static word | mzed_read_elem (const mzed_t *A, const rci_t row, const rci_t col) |
Get the element at position (row,col) from the matrix A. More... | |
static void | mzed_add_elem (mzed_t *A, const rci_t row, const rci_t col, const word elem) |
At the element elem to the element at position (row,col) in the matrix A. More... | |
static void | mzed_write_elem (mzed_t *A, const rci_t row, const rci_t col, const word elem) |
Write the element elem to the position (row,col) in the matrix A. More... | |
|
inlinestatic |
Fill matrix A with random elements.
A | Matrix |
|
inlinestatic |
At the element elem to the element at position (row,col) in the matrix A.
A | Target matrix. |
row | Starting row. |
col | Starting column. |
elem | finite field element. |
|
inlinestatic |
Fill matrix A with random elements.
A | Matrix |
|
inlinestatic |
Get the element at position (row,col) from the matrix A.
A | Source matrix. |
row | Starting row. |
col | Starting column. |
void mzd_slice_set_ui | ( | mzd_slice_t * | A, |
word | value | ||
) |
Return diagonal matrix with value on the diagonal.
If the matrix is not square then the largest possible square submatrix is used.
A | Matrix. |
value | Finite Field element. |
|
inlinestatic |
Write the element elem to the position (row,col) in the matrix A.
A | Target matrix. |
row | Starting row. |
col | Starting column. |
elem | finite field element. |
|
inlinestatic |
At the element elem to the element at position (row,col) in the matrix A.
A | Target matrix. |
row | Starting row. |
col | Starting column. |
elem | finite field element. |
Copy matrix A to B.
B | May be NULL for automatic creation. |
A | Source matrix. |
void mzed_randomize | ( | mzed_t * | A | ) |
Fill matrix A with random elements.
A | Matrix |
|
inlinestatic |
Get the element at position (row,col) from the matrix A.
A | Source matrix. |
row | Starting row. |
col | Starting column. |
void mzed_set_ui | ( | mzed_t * | A, |
word | value | ||
) |
Return diagonal matrix with value on the diagonal.
If the matrix is not square then the largest possible square submatrix is used.
A | Matrix |
value | Finite Field element |
|
inlinestatic |
Write the element elem to the position (row,col) in the matrix A.
A | Target matrix. |
row | Starting row. |
col | Starting column. |
elem | finite field element. |