Hitmap 1.3
|
#include <hit_tile.h>
Public Member Functions | |
#define | hit_mbTileDomainShape(newVarP, baseType, shape) hit_mbTileDomainShapeInternal(newVarP, sizeof(baseType), shape) |
void | hit_mbTileDomainShapeInternal (void *newVarP, size_t baseExtent, HitShape shape) |
#define | hit_mbTileAlloc(var) hit_mbTileAllocInternal(var, #var, __FILE__, __LINE__) |
void | hit_mbTileAllocInternal (void *newVarP, const char *name, const char *file, int numLine) |
#define | hit_mbTileDomainShapeAlloc(var, baseType, shape) |
int | hit_mbTileElemAtIndex (void *varP, int local1, int local2) |
int | hit_mbTileGraphElemAtIndex (void *varP, int pos1, int pos2) |
#define | hit_mbTileElemAt(var, pos1, pos2) ((var).data[hit_bTileElemAtIndex(&(var),(pos1),(pos2))]) |
#define | hit_mbTileGraphElemAt(var, pos1, pos2) ((var).data[hit_mbTileGraphElemAtIndex(&(var),(pos1),(pos2))]) |
Class of HitTile to implement Sparse Matrices using Bitmap sparse data format.
void hit_mbTileAllocInternal | ( | void * | newVarP, |
const char * | name, | ||
const char * | file, | ||
int | numLine | ||
) |
Allocate a previously declared mbTile.
Definition at line 61 of file hit_mbtile.c.
void hit_mbTileDomainShapeInternal | ( | void * | newVarP, |
size_t | baseExtent, | ||
HitShape | shape | ||
) |
Declares the shape and base type of a new sparse domain.
Definition at line 38 of file hit_mbtile.c.
int hit_mbTileElemAtIndex | ( | void * | varP, |
int | local1, | ||
int | local2 | ||
) |
Gets the index of a sparse element in local coordinates.
var | The tile pointer. |
local1 | The first coordinate. |
local2 | The second coordinate. |
int hit_mbTileGraphElemAtIndex | ( | void * | varP, |
int | pos1, | ||
int | pos2 | ||
) |
Gets the index of a sparse element in global coordinates.
var | The tile pointer. |
local1 | The first coordinate. |
local2 | The second coordinate. |