meplib / cCode / matrices / mpz / mpz-matrix.h @ master
Historique | Voir | Annoter | Télécharger (1,19 ko)
| 1 |
/* mpz_matrix.h */
|
|---|---|
| 2 |
|
| 3 |
#ifndef MPZ_MATRIX_h
|
| 4 |
#define MPZ_MATRIX_h
|
| 5 |
|
| 6 |
/* user must include: gmp.h before this file. */
|
| 7 |
|
| 8 |
#include "mpz-matrix-types.h" |
| 9 |
|
| 10 |
/**
|
| 11 |
* Create a new integer matrix, allocating memory and initializing all the
|
| 12 |
* elements.
|
| 13 |
* @param NbRows, the number of rows;
|
| 14 |
* @param NbColumns, the number of columns;
|
| 15 |
* @return a pointer on the matrix if all parameters have acceptable values and all
|
| 16 |
* allocation and initialization operations succeed, NULL otherwise.
|
| 17 |
*/
|
| 18 |
mpz_matrix* mpz_matrix_alloc(unsigned NbRows,unsigned NbColumns); |
| 19 |
|
| 20 |
void mpz_matrix_free(mpz_matrix *Mat);
|
| 21 |
|
| 22 |
void mpz_matrix_print(FILE *Dst, int radix, mpz_matrix *Mat); |
| 23 |
|
| 24 |
void mpz_matrix_print_no_dims(FILE *Dst, int radix, mpz_matrix *Mat); |
| 25 |
|
| 26 |
void mpz_matrix_print_matlab(FILE *Dst, int radix, mpz_matrix *Mat); |
| 27 |
|
| 28 |
void mpz_matrix_read_input(mpz_matrix *Mat, int radix); |
| 29 |
|
| 30 |
mpz_matrix *mpz_matrix_read(int radix);
|
| 31 |
|
| 32 |
mpz_t* mpz_matrix_get_at(mpz_matrix* mat, |
| 33 |
unsigned int row, |
| 34 |
unsigned int column); |
| 35 |
|
| 36 |
void mpz_matrix_set_at(mpz_matrix* mat,
|
| 37 |
unsigned int row, |
| 38 |
unsigned int column, |
| 39 |
mpz_t value); |
| 40 |
|
| 41 |
#endif /* MPZ_MATRIX_h */ |