1 /* Á¹ÔÎó¤ò°·¤¦¤¿¤á¤Î¥³¡¼¥É */
2 #ifndef _matrix_h_included_
3 #define _matrix_h_included_
6 /* number of 'int elements */
15 /* ¹ÔÎó¤ò¹½À®¤¹¤ëAPI */
16 struct sparse_matrix *anthy_sparse_matrix_new(void);
17 void anthy_sparse_matrix_set(struct sparse_matrix *m, int row, int column,
18 int value, void *ptr);
19 int anthy_sparse_matrix_get_int(struct sparse_matrix *m, int row, int column);
20 void anthy_sparse_matrix_make_matrix(struct sparse_matrix *m);
21 /* ¹ÔÎ󥤥᡼¥¸¤ò¹½ÃÛ¤¹¤ëAPI(ÇÛÎó¤Ïhost byte order) */
22 struct matrix_image *anthy_matrix_image_new(struct sparse_matrix *s);
23 /* ¹ÔÎ󥤥᡼¥¸¤Ë¥¢¥¯¥»¥¹¤¹¤ëAPI(ÇÛÎó¤Ïnetwork byte order) */
24 int anthy_matrix_image_peek(int *im, int row, int col);