Hitmap 1.3
|
Go to the source code of this file.
Macros | |
#define | VLOCAL 1 |
#define | VEXPAND 2 |
#define | s (*shape) |
#define | s (*shape) |
Functions | |
HitShape | hit_bitmapShape (int nvertices) |
HitShape | hit_bitmapShapeMatrix (int n, int m) |
void | hit_bShapeFree (HitShape shape) |
void | hit_bShapeCopyElementsInternal (HitShape dst, HitShape src) |
HitShape | hit_bShapeSelect (HitShape shape, int nvertices, int *vertices) |
HitShape | hit_bShapeSelectRows (HitShape shape, int nNames, int *names) |
HitShape | hit_bShapeExpand (HitShape shape, HitShape original, int amount) |
void | hit_bShapeAddEmptyRow_or_Vertex (HitShape *shape, int x, int mode) |
void | hit_bShapeAddColumn (HitShape *shape, int y) |
void | hit_bShapeAddElem_or_Edge (HitShape *shape, int x, int y, int mode) |
int | hit_bShapeNColsRow (HitShape shape, int row) |
Types and functions to manipulate bitmap sparse domains.
Definition in file hit_bshape.c.
#define s (*shape) |
#define s (*shape) |
#define VEXPAND 2 |
#define VLOCAL 1 |
HitShape hit_bitmapShape | ( | int | nvertices | ) |
HitShape hit_bitmapShapeMatrix | ( | int | n, |
int | m | ||
) |
Sparse Bitmap matrix shape constructor.
n | Number of rows |
m | Number of columns |
Definition at line 69 of file hit_bshape.c.
void hit_bShapeAddColumn | ( | HitShape * | shape, |
int | y | ||
) |
Definition at line 369 of file hit_bshape.c.
void hit_bShapeAddElem_or_Edge | ( | HitShape * | shape, |
int | x, | ||
int | y, | ||
int | mode | ||
) |
Adds an element to a matrix or a edge to a graph.
shape | The shape |
x | The row/vertex |
y | The element/edge |
mode | The matrix/graph mode. |
Definition at line 413 of file hit_bshape.c.
void hit_bShapeAddEmptyRow_or_Vertex | ( | HitShape * | shape, |
int | x, | ||
int | mode | ||
) |
Adds an empty row in a bitmap sparse matrix or a vertex in a graph.
shape | The shape. |
x | The name of the row or vertex. |
mode | The mode matrix or graph. |
Definition at line 293 of file hit_bshape.c.
Copy the elements from a bitmap shape to another.
dst | Destination shape. |
src | Source shape. |
Definition at line 111 of file hit_bshape.c.
void hit_bShapeFree | ( | HitShape | shape | ) |
int hit_bShapeNColsRow | ( | HitShape | shape, |
int | row | ||
) |
Return the number of nonzero elements of a row.
shape | A bitmap shape. |
row | The index of the row. |
Definition at line 434 of file hit_bshape.c.
Returns a new bitmap shape with a selection of rows.
shape | The source shape. |
nNames | The number of rows. |
names | The list with the names of the rows. |
Definition at line 162 of file hit_bshape.c.