Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifdef __cplusplus
00031 extern "C"
00032 {
00033 #endif
00034
00035
00036
00037 struct C_MatrixXd {};
00038 struct C_Map_MatrixXd {};
00039
00040
00041
00042 struct C_MatrixXd* MatrixXd_new(int rows, int cols);
00043 void MatrixXd_delete (struct C_MatrixXd *m);
00044 double* MatrixXd_data (struct C_MatrixXd *m);
00045 void MatrixXd_set_zero (struct C_MatrixXd *m);
00046 void MatrixXd_resize (struct C_MatrixXd *m, int rows, int cols);
00047 void MatrixXd_copy (struct C_MatrixXd *dst,
00048 const struct C_MatrixXd *src);
00049 void MatrixXd_copy_map (struct C_MatrixXd *dst,
00050 const struct C_Map_MatrixXd *src);
00051 void MatrixXd_set_coeff (struct C_MatrixXd *m,
00052 int i, int j, double coeff);
00053 double MatrixXd_get_coeff (const struct C_MatrixXd *m,
00054 int i, int j);
00055 void MatrixXd_print (const struct C_MatrixXd *m);
00056 void MatrixXd_add (const struct C_MatrixXd *m1,
00057 const struct C_MatrixXd *m2,
00058 struct C_MatrixXd *result);
00059 void MatrixXd_multiply (const struct C_MatrixXd *m1,
00060 const struct C_MatrixXd *m2,
00061 struct C_MatrixXd *result);
00062
00063
00064
00065 struct C_Map_MatrixXd* Map_MatrixXd_new(double *array, int rows, int cols);
00066 void Map_MatrixXd_delete (struct C_Map_MatrixXd *m);
00067 void Map_MatrixXd_set_zero (struct C_Map_MatrixXd *m);
00068 void Map_MatrixXd_copy (struct C_Map_MatrixXd *dst,
00069 const struct C_Map_MatrixXd *src);
00070 void Map_MatrixXd_copy_matrix(struct C_Map_MatrixXd *dst,
00071 const struct C_MatrixXd *src);
00072 void Map_MatrixXd_set_coeff (struct C_Map_MatrixXd *m,
00073 int i, int j, double coeff);
00074 double Map_MatrixXd_get_coeff (const struct C_Map_MatrixXd *m,
00075 int i, int j);
00076 void Map_MatrixXd_print (const struct C_Map_MatrixXd *m);
00077 void Map_MatrixXd_add (const struct C_Map_MatrixXd *m1,
00078 const struct C_Map_MatrixXd *m2,
00079 struct C_Map_MatrixXd *result);
00080 void Map_MatrixXd_multiply (const struct C_Map_MatrixXd *m1,
00081 const struct C_Map_MatrixXd *m2,
00082 struct C_Map_MatrixXd *result);
00083
00084 #ifdef __cplusplus
00085 }
00086 #endif