home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
vis-ftp.cs.umass.edu
/
vis-ftp.cs.umass.edu.tar
/
vis-ftp.cs.umass.edu
/
pub
/
Software
/
ASCENDER
/
ascendMar8.tar
/
UMass
/
Triangulate
/
include
/
array_utils.s
< prev
next >
Wrap
Text File
|
1995-04-13
|
4KB
|
169 lines
#ifndef incl_array_utils_s
#define incl_array_utils_s
#include "cvar.h"
FUNCTION_DECL ( char **alloca_matrix, (
int nrl,
int nrh,
int ncl,
int nch,
int entry_size,
char **m));
FUNCTION_DECL ( char **malloc_matrix, (
int nrl,
int nrh,
int ncl,
int nch,
int entry_size));
FUNCTION_DECL ( void fprint_intmatrix, (
char *format,
FILE *afile,
int **a,
int nrl,
int nrh,
int ncl,
int nch));
FUNCTION_DECL ( void fprint_shortmatrix, (
char *format,
FILE *afile,
short **a,
int nrl,
int nrh,
int ncl,
int nch));
FUNCTION_DECL ( void fprint_floatmatrix, (
char *format,
FILE *afile,
float **a,
int nrl,
int nrh,
int ncl,
int nch));
FUNCTION_DECL ( void fprint_doublematrix, (
char *format,
FILE *afile,
double **a,
int nrl,
int nrh,
int ncl,
int nch));
FUNCTION_DECL ( void fprint_matrix, (
char *format,
FILE *afile,
double **a,
int nrl,
int nrh,
int ncl,
int nch));
FUNCTION_DECL ( void print_matrix, (
FILE *afile,
double **a,
int nrl,
int nrh,
int ncl,
int nch));
FUNCTION_DECL ( void fprint_vector, (
char *format,
FILE *afile,
double *v,
int nrl,
int nrh));
FUNCTION_DECL ( void print_vector, (
FILE *afile,
double *v,
int nrl,
int nrh));
FUNCTION_DECL ( void matrix_prod, (
double **A,
double **B,
int l,
int m,
int n,
double **X));
FUNCTION_DECL ( void vector_matrix_prod, (
double *b,
double **A,
int l,
int m,
double *x));
FUNCTION_DECL ( void matrix_vector_prod, (
double **A,
double *b,
int l,
int m,
double *x));
FUNCTION_DECL ( double inner_product, (
double *A,
double *B,
int n));
FUNCTION_DECL ( double vector_length, (
double *A,
int n));
FUNCTION_DECL ( void transpose, (
double **A, /* The matrix to be transposed */
double **At, /* Its transpose (returned) */
int nrl, int nrh, /* X dimension */
int ncl, int nch /* Y dimension */
));
FUNCTION_DECL ( int matrix_inverse, (
double **A, /* The matrix to be inverted */
double **Ainv, /* The inverse computed */
int n /* Dimension of the matrix */
));
FUNCTION_DECL ( char **sub_matrix, (
char **A, /* Base array */
int nrl, int ncl, /* Origin of the new array */
int rdim, /* Number of rows of the sub-array */
int orgi, int orgj, /* Starting index for new array */
int entry_size /* Size of an entry */
));
FUNCTION_DECL ( double det3x3, (
double **A));
FUNCTION_DECL ( void cofactor_matrix_3x3, (
double **A,
double **Aadj));
FUNCTION_DECL ( void matrix_copy, (
double **A, double **B, /* The matrices to copy from and to */
int i0, int i1, /* Row bounds */
int j0, int j1 /* Column bounds */
));
FUNCTION_DECL ( void cross_product, (
double *A, double *B, /* Two vectors 1..3 */
double *C /* Their cross product */
));
FUNCTION_DECL ( int lin_solve, (
double **A, /* The matrix of coefficients */
double *x, /* The vector of unknowns */
double *b, /* The goal vector */
int n /* Size of the system */
));
FUNCTION_DECL ( void identity_matrix, (
double **A,
int dim));
#endif