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

Go to the source code of this file.

Functions

void errexit (char *f_str,...)
 
int * imalloc (int n, char *msg)
 
idxtypeidxmalloc (int n, char *msg)
 
float * fmalloc (int n, char *msg)
 
int * ismalloc (int n, int ival, char *msg)
 
idxtypeidxsmalloc (int n, idxtype ival, char *msg)
 
void * GKmalloc (int nbytes, char *msg)
 
void GKfree (void **ptr1,...)
 
int * iset (int n, int val, int *x)
 
idxtypeidxset (int n, idxtype val, idxtype *x)
 
float * sset (int n, float val, float *x)
 
int iamax (int n, int *x)
 
int idxamax (int n, idxtype *x)
 
int idxamax_strd (int n, idxtype *x, int incx)
 
int samax (int n, float *x)
 
int samax2 (int n, float *x)
 
int idxamin (int n, idxtype *x)
 
int samin (int n, float *x)
 
int idxsum (int n, idxtype *x)
 
int idxsum_strd (int n, idxtype *x, int incx)
 
void idxadd (int n, idxtype *x, idxtype *y)
 
int charsum (int n, char *x)
 
int isum (int n, int *x)
 
float ssum (int n, float *x)
 
float ssum_strd (int n, float *x, int incx)
 
void sscale (int n, float alpha, float *x)
 
float snorm2 (int n, float *v)
 
float sdot (int n, float *x, float *y)
 
void saxpy (int n, float alpha, float *x, int incx, float *y, int incy)
 
void RandomPermute (int n, idxtype *p, int flag)
 
int ispow2 (int a)
 
void InitRandom (int seed)
 
int log2_function (int a)
 

Function Documentation

int charsum ( int  n,
char *  x 
)

Definition at line 341 of file util.c.

void errexit ( char *  f_str,
  ... 
)

Definition at line 20 of file util.c.

float* fmalloc ( int  n,
char *  msg 
)

Definition at line 66 of file util.c.

void GKfree ( void **  ptr1,
  ... 
)

Definition at line 121 of file util.c.

Here is the caller graph for this function:

void* GKmalloc ( int  nbytes,
char *  msg 
)

Definition at line 103 of file util.c.

int iamax ( int  n,
int *  x 
)

Definition at line 189 of file util.c.

void idxadd ( int  n,
idxtype x,
idxtype y 
)

Definition at line 331 of file util.c.

int idxamax ( int  n,
idxtype x 
)

Definition at line 203 of file util.c.

int idxamax_strd ( int  n,
idxtype x,
int  incx 
)

Definition at line 216 of file util.c.

int idxamin ( int  n,
idxtype x 
)

Definition at line 274 of file util.c.

idxtype* idxmalloc ( int  n,
char *  msg 
)

Definition at line 54 of file util.c.

idxtype* idxset ( int  n,
idxtype  val,
idxtype x 
)

Definition at line 160 of file util.c.

idxtype* idxsmalloc ( int  n,
idxtype  ival,
char *  msg 
)

Definition at line 91 of file util.c.

int idxsum ( int  n,
idxtype x 
)

Definition at line 302 of file util.c.

int idxsum_strd ( int  n,
idxtype x,
int  incx 
)

Definition at line 316 of file util.c.

int* imalloc ( int  n,
char *  msg 
)

Definition at line 42 of file util.c.

void InitRandom ( int  seed)

Definition at line 492 of file util.c.

Here is the call graph for this function:

int* iset ( int  n,
int  val,
int *  x 
)

Definition at line 146 of file util.c.

int* ismalloc ( int  n,
int  ival,
char *  msg 
)

Definition at line 78 of file util.c.

int ispow2 ( int  a)

Definition at line 482 of file util.c.

int isum ( int  n,
int *  x 
)

Definition at line 354 of file util.c.

int log2_function ( int  a)

Definition at line 511 of file util.c.

void RandomPermute ( int  n,
idxtype p,
int  flag 
)

Definition at line 454 of file util.c.

int samax ( int  n,
float *  x 
)

Definition at line 232 of file util.c.

int samax2 ( int  n,
float *  x 
)

Definition at line 245 of file util.c.

int samin ( int  n,
float *  x 
)

Definition at line 288 of file util.c.

void saxpy ( int  n,
float  alpha,
float *  x,
int  incx,
float *  y,
int  incy 
)

Definition at line 438 of file util.c.

float sdot ( int  n,
float *  x,
float *  y 
)

Definition at line 423 of file util.c.

float snorm2 ( int  n,
float *  v 
)

Definition at line 407 of file util.c.

void sscale ( int  n,
float  alpha,
float *  x 
)

Definition at line 395 of file util.c.

float* sset ( int  n,
float  val,
float *  x 
)

Definition at line 174 of file util.c.

float ssum ( int  n,
float *  x 
)

Definition at line 367 of file util.c.

float ssum_strd ( int  n,
float *  x,
int  incx 
)

Definition at line 381 of file util.c.