Hitmap 1.3
 All Data Structures Namespaces Files Functions Variables Typedefs Friends Macros Groups Pages
Macros | Functions
hit_cshape.c File Reference
#include <limits.h>
#include <hit_allocP.h>
#include <hit_cshape.h>
#include <hit_funcop.h>
Include dependency graph for hit_cshape.c:

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)
 

Detailed Description

Types and functions to manipulate CSR sparse domains.

Version
1.0
Author
Javier Fresno Bausela
Date
Nov 2011

Definition in file hit_cshape.c.

Macro Definition Documentation

#define s   (*shape)
#define s   (*shape)
#define VEXPAND   2
#define VLOCAL   1

Function Documentation

void hit_cShapeAddColumn ( HitShape shape,
int  y 
)

Definition at line 407 of file hit_cshape.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters
shapeThe CShape.
xThe x coordinate or source vertex.
yThe y coordinate or destination vertex.
modeThe Matrix or Graph mode

Definition at line 432 of file hit_cshape.c.

Here is the call graph for this function:

void hit_cShapeAddEmptyRow_or_Vertex ( HitShape shape,
int  x,
int  mode 
)

Definition at line 349 of file hit_cshape.c.

Here is the call graph for this function:

void hit_cShapeCreateInvNames ( HitShape shape)

Definition at line 318 of file hit_cshape.c.

Here is the call graph for this function:

int hit_cShapeElemExists ( HitShape  shape,
int  x,
int  y 
)

Checks if a element exists in a HitCShape

Parameters
shapeA HitCShape.
xThe row index.
yThe col index.
Returns
1 if the element exists, 0 otherwise.

Definition at line 416 of file hit_cshape.c.

HitShape hit_cShapeExpand ( HitShape  shape,
HitShape  original,
int  amount 
)

Definition at line 208 of file hit_cshape.c.

Here is the call graph for this function:

void hit_cShapeFree ( HitShape  shape)

Definition at line 99 of file hit_cshape.c.

Here is the call graph for this function:

HitShape hit_cShapeSelect ( HitShape  s,
int  nvertices,
int *  vertices 
)

Definition at line 109 of file hit_cshape.c.

Here is the call graph for this function:

HitShape hit_cShapeSelectRows ( HitShape  shape,
int  nNames,
int *  names 
)

Definition at line 542 of file hit_cshape.c.

Here is the call graph for this function:

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.

Here is the caller graph for this function:

HitShape hit_csrShape ( int  nvertices,
int  nedges 
)

Definition at line 47 of file hit_cshape.c.

Here is the call graph for this function:

HitShape hit_csrShapeMatrix ( int  n,
int  m,
int  nz 
)

Sparse CSR matrix shape constructor.

Parameters
nNumber of rows
mNumber of columns
nzNumber of nonzero elements.
Returns
the new CSR Sparse Shape.

Definition at line 72 of file hit_cshape.c.

Here is the call graph for this function:

Here is the caller graph for this function: