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_csrShape (int nvertices, int nedges) |
HitShape | hit_csrShapeMatrix (int n, int m, int nz) |
void | hit_cShapeFree (HitShape shape) |
HitShape | hit_cShapeSelect (HitShape s, int nvertices, int *vertices) |
HitShape | hit_cShapeExpand (HitShape shape, HitShape original, int amount) |
void | hit_cShapeCreateInvNames (HitShape *shape) |
void | hit_cShapeAddEmptyRow_or_Vertex (HitShape *shape, int x, int mode) |
void | hit_cShapeAddColumn (HitShape *shape, int y) |
int | hit_cShapeElemExists (HitShape shape, int x, int y) |
void | hit_cShapeAddElem_or_Edge (HitShape *shape, int x, int y, int mode) |
void | hit_cShapeSelectRows_compress_columns (HitShape *shape) |
HitShape | hit_cShapeSelectRows (HitShape shape, int nNames, int *names) |
Types and functions to manipulate CSR sparse domains.
Definition in file hit_cshape.c.
#define s (*shape) |
#define s (*shape) |
#define VEXPAND 2 |
#define VLOCAL 1 |
void hit_cShapeAddColumn | ( | HitShape * | shape, |
int | y | ||
) |
Definition at line 407 of file hit_cshape.c.
void hit_cShapeAddElem_or_Edge | ( | HitShape * | shape, |
int | x, | ||
int | y, | ||
int | mode | ||
) |
Adds a new element to a matrix or and edge to a graph
shape | The CShape. |
x | The x coordinate or source vertex. |
y | The y coordinate or destination vertex. |
mode | The Matrix or Graph mode |
Definition at line 432 of file hit_cshape.c.
void hit_cShapeAddEmptyRow_or_Vertex | ( | HitShape * | shape, |
int | x, | ||
int | mode | ||
) |
void hit_cShapeCreateInvNames | ( | HitShape * | shape | ) |
int hit_cShapeElemExists | ( | HitShape | shape, |
int | x, | ||
int | y | ||
) |
Checks if a element exists in a HitCShape
shape | A HitCShape. |
x | The row index. |
y | The col index. |
Definition at line 416 of file hit_cshape.c.
void hit_cShapeFree | ( | HitShape | shape | ) |
void hit_cShapeSelectRows_compress_columns | ( | HitShape * | shape | ) |
Compress the columns removing the not used columns and update the names and adjncy vector.
Definition at line 491 of file hit_cshape.c.
HitShape hit_csrShape | ( | int | nvertices, |
int | nedges | ||
) |
HitShape hit_csrShapeMatrix | ( | int | n, |
int | m, | ||
int | nz | ||
) |
Sparse CSR matrix shape constructor.
n | Number of rows |
m | Number of columns |
nz | Number of nonzero elements. |
Definition at line 72 of file hit_cshape.c.