Angka
0.0.1
A C library focusing on data manipulation and visualization
|
the library for grid data manipulation More...
Go to the source code of this file.
Data Structures | |
struct | s_grid |
grid structure data More... | |
Typedefs | |
typedef struct s_grid | AgxGrid |
grid structure data More... | |
Functions | |
AgxGrid * | agx_grid_new (int *shape, int ndim) |
create a grid data in malloc More... | |
void | agx_grid_delete (AgxGrid **grid) |
delete agx_grid_new More... | |
int | agx_grid_idim2index (AgxGrid *grid, int *indexes, int ndim) |
convert dimensional indexes to 1d index More... | |
int * | agx_grid_index2dim (AgxGrid *grid, int index) |
convert 1d index to dimensional indexes More... | |
int | agx_grid_index2idim (AgxGrid *grid, int idim, int index) |
using agx_grid_index2dim only for a certain dimensional index. More... | |
the library for grid data manipulation
void agx_grid_delete | ( | AgxGrid ** | grid | ) |
delete agx_grid_new
int agx_grid_idim2index | ( | AgxGrid * | grid, |
int * | indexes, | ||
int | ndim | ||
) |
convert dimensional indexes to 1d index
indexes | input dimensional indexes {x1, ..., xn} |
ndim | length of dimensional input N |
int* agx_grid_index2dim | ( | AgxGrid * | grid, |
int | index | ||
) |
convert 1d index to dimensional indexes
int agx_grid_index2idim | ( | AgxGrid * | grid, |
int | idim, | ||
int | index | ||
) |
using agx_grid_index2dim only for a certain dimensional index.
AgxGrid* agx_grid_new | ( | int * | shape, |
int | ndim | ||
) |
create a grid data in malloc
shape | array input dimensional values beginning with {x1, ..., xn} |
ndim | the length of dimensional data N {x1, ..., xn} |