ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
memory.c File Reference
#include "metis.h"
Include dependency graph for memory.c:

Go to the source code of this file.

Functions

void AllocateWorkSpace (CtrlType *ctrl, GraphType *graph, int nparts)
 
void FreeWorkSpace (CtrlType *ctrl, GraphType *graph)
 
int WspaceAvail (CtrlType *ctrl)
 
idxtypeidxwspacemalloc (CtrlType *ctrl, int n)
 
void idxwspacefree (CtrlType *ctrl, int n)
 
float * fwspacemalloc (CtrlType *ctrl, int n)
 
void fwspacefree (CtrlType *ctrl, int n)
 
GraphTypeCreateGraph (void)
 
void InitGraph (GraphType *graph)
 
void FreeGraph (GraphType *graph)
 

Function Documentation

◆ AllocateWorkSpace()

◆ CreateGraph()

GraphType* CreateGraph ( void  )

Definition at line 154 of file memory.c.

References GKmalloc, and InitGraph().

◆ FreeGraph()

void FreeGraph ( GraphType graph)

Definition at line 202 of file memory.c.

References graphdef::gdata, GKfree, LTERM, graphdef::npwgts, graphdef::nvwgt, and graphdef::rdata.

◆ FreeWorkSpace()

void FreeWorkSpace ( CtrlType ctrl,
GraphType graph 
)

◆ fwspacefree()

void fwspacefree ( CtrlType ctrl,
int  n 
)

◆ fwspacemalloc()

float* fwspacemalloc ( CtrlType ctrl,
int  n 
)

◆ idxwspacefree()

void idxwspacefree ( CtrlType ctrl,
int  n 
)

Definition at line 116 of file memory.c.

References ASSERT, workspacedef::ccore, and controldef::wspace.

◆ idxwspacemalloc()

idxtype* idxwspacemalloc ( CtrlType ctrl,
int  n 
)

◆ InitGraph()

◆ WspaceAvail()

int WspaceAvail ( CtrlType ctrl)

Definition at line 95 of file memory.c.

References workspacedef::ccore, workspacedef::maxcore, and controldef::wspace.