[BACK]Return to matrices.h CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / TiGERS_0.9

File: [local] / OpenXM_contrib / TiGERS_0.9 / Attic / matrices.h (download)

Revision 1.1.1.1 (vendor branch), Sat Nov 27 10:58:43 1999 UTC (24 years, 5 months ago) by maekawa
Branch: TIGERS
CVS Tags: maekawa-ipv6, VERSION_0_9, RELEASE_20000124, RELEASE_1_2_3, RELEASE_1_2_2_KNOPPIX_b, RELEASE_1_2_2_KNOPPIX, RELEASE_1_2_2, RELEASE_1_2_1, RELEASE_1_1_3, RELEASE_1_1_2
Changes since 1.1: +0 -0 lines

Import TiGERS 0.9

/*
**  matrices.h                                 4/99 
**                   
**  Definition and Minipulation of integer and double matrices and vectors.
**  vectors are simply C-vectors (with indices starting at zero) and matrices
**  are stored Numerical Recepies style -- as a vector of pointers to the
**  rows of the matrix [which are themselves just regular C vectors].
**
** TiGERS,  Toric Groebner Basis Enumeration by Reverse Search 
** copyright (c) 1999  Birk Huber
*/
#define IMref(M,i,j) ((M)[i][j])


int **imatrix_read(FILE *is,int *m, int *n);
void print_imatrix(FILE *of, char *prefix,int **M, int m, int n);
int **new_imatrix(int r, int c);
void free_imatrix(int **M);
int *new_ivector(int c);
void free_ivector(int *V);
double **new_matrix(int r, int c);
void free_matrix(double **M);
double *new_vector(int c);
void free_vector(double *V);