Hitmap 1.3
|
#include <hit_shape.h>
/** ADT for sparse domains in Bitmap format.
This struct uses a Bitmap to represent the non-zero elements in a graph or sparse matrix. It can represent a full structure or a selection of a global structure as far as the selected nodes/elements have contigous indexes.
The current implementaton supports up to two dimensions.
Definition at line 156 of file hit_shape.h.
HitShape hit_bitmapShape | ( | int | nvertices | ) |
/**
/**
/* 1. Hit Bitmap Shape generating functions Creates a new Bitmap shape with n vertices. This first vertex name is 0.
nvertices | Number of vertices. |
Definition at line 46 of file hit_bshape.c.
void hit_bShapeCreateInvNames | ( | HitShape * | shape | ) |
Creates the inverse translation list of vertex names. This list is used to speedup the translation operation from global to local names. This function will increase the size of the shape.
shape | A pointer to HitBShape. |
HIT_BITMAP_TYPE * hit_bShapeDate | ( | HitShape | shape | ) |
Get the data array with the bitmap.
shape | A bitmap shape. |
Expand a Bitmap Sparse Shape adding new vertices of the original graph.
shape | The shape to expand. |
original | The original shape. |
amount | The number of times that the expand algorithm is invoked. |
Definition at line 193 of file hit_bshape.c.
void hit_bShapeFree | ( | HitShape | shape | ) |
Hit Bitmap Shape destructor.
shape | A Hit Bitmap Shape. |
Definition at line 95 of file hit_bshape.c.
Create a new bitmap shape selection several vertices.
shape | A BShape. |
nvertices | The number of vertices selected. |
vertices | The list of vertices. |
Definition at line 134 of file hit_bshape.c.