16 printf(
"*** demo_MatrixXd ***\n");
22 printf(
"Here is matrix1:\n");
27 printf(
"Here is matrix1*matrix1:\n");
47 printf(
"*** demo_Map_MatrixXd ***\n");
49 for(i = 0; i < 5; ++
i) array[i] = i;
50 printf(
"Initially, the array is:\n");
57 printf(
"Now the array is:\n");
void MatrixXd_set_coeff(C_MatrixXd *m, int i, int j, double coeff)
C_Map_MatrixXd * Map_MatrixXd_new(double *array, int rows, int cols)
C_MatrixXd * MatrixXd_new(int rows, int cols)
void MatrixXd_print(const C_MatrixXd *m)
void MatrixXd_delete(C_MatrixXd *m)
void MatrixXd_multiply(const C_MatrixXd *m1, const C_MatrixXd *m2, C_MatrixXd *result)
void print_array(double *array, int n)
void Map_MatrixXd_add(const C_Map_MatrixXd *m1, const C_Map_MatrixXd *m2, C_Map_MatrixXd *result)
void Map_MatrixXd_print(const C_Map_MatrixXd *m)
void MatrixXd_set_zero(C_MatrixXd *m)
void Map_MatrixXd_delete(C_Map_MatrixXd *m)