home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
vis-ftp.cs.umass.edu
/
vis-ftp.cs.umass.edu.tar
/
vis-ftp.cs.umass.edu
/
pub
/
CMU
/
cmu_files
/
cal
/
matrix.h
< prev
next >
Wrap
Text File
|
1990-12-11
|
1KB
|
73 lines
/* matrix.h -- define types for matrices using Iliffe vectors
*************************************************************
* HISTORY
* 25-Nov-80 David Smith (drs) at Carnegie-Mellon University
* Changed virtual base address name to "el" for all data
* types (Previously vali, vald, ...) This was possible due to the
* compiler enhancement which keeps different structure declarations
* separate.
*
* 30-Oct-80 David Smith (drs) at Carnegie-Mellon University
* Rewritten for record-style matrices
*
*/
typedef struct {
int lb1, ub1, lb2, ub2;
char *mat_sto;
char **el;
}
cmat;
typedef struct {
int lb1, ub1, lb2, ub2;
char *mat_sto;
unsigned char **el;
}
ucmat;
typedef struct {
int lb1, ub1, lb2, ub2;
char *mat_sto;
short **el;
}
smat;
typedef struct {
int lb1, ub1, lb2, ub2;
char *mat_sto;
int **el;
}
imat;
typedef struct {
int lb1, ub1, lb2, ub2;
char *mat_sto;
long **el;
}
lmat;
typedef struct {
int lb1, ub1, lb2, ub2;
char *mat_sto;
float **el;
}
fmat;
typedef struct {
int lb1, ub1, lb2, ub2;
char *mat_sto;
double **el;
}
dmat;
cmat newcmat();
ucmat newucmat();
smat newsmat();
imat newimat();
lmat newlmat();
fmat newfmat();
dmat newdmat();
#define freemat(m) free((m).mat_sto)