00001 #ifndef MATTRI_HEADER
00002 #define MATTRI_HEADER
00003
00004
00005
00012
00013
00014
00015
00016 #include <stdlib.h>
00017 #include <stdio.h>
00018
00019
00020
00021 #ifdef __cplusplus
00022 namespace RazorBack {
00023 #endif
00024
00030 typedef struct
00031 {
00032 double **Mat;
00033 unsigned int Size;
00034 unsigned int Rlen, Elen;
00035 } Mattri_;
00036
00037
00038
00039 #ifdef __cplusplus
00040 extern "C" {
00041 #endif
00042
00050 void init_mattri(Mattri_ *M, unsigned int Size);
00051
00063 void array_mattri(Mattri_ *M, const double *Array);
00064
00072 void resize_mattri(Mattri_ *M, unsigned int Newsize);
00073
00079 void copy_mattri(const Mattri_ *From, Mattri_ *To);
00080
00087 int read_mattri(FILE *In, Mattri_ *M);
00088
00095 void write_mattri(FILE *Out, const Mattri_ *M, int Prec);
00096
00103 void free_mattri(Mattri_ *M);
00104
00105 #ifdef __cplusplus
00106 } }
00107 #endif
00108
00109
00110
00111 #endif