BlockIP
Macros | Functions
misc.C File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include "misc.h"

Macros

#define SMALLdp   2.22507385850720e-308 /* Smallest (pos) binary float */
 
#define HUGEdp   1.79769313486232e+308 /* Largest binary float */
 
#define abs(x)   ((x)>0.0?(x):-(x))
 

Functions

void write_double (double *v, int i, int j, char *nom)
 
void write_int (int *v, int i, int j, char *nom)
 
int idamax (int n, double *sx, int incx)
 
void daxpy (int n, double sa, double *sx, int incx, double *sy, int incy)
 
void daxpyx (int n, double sa, double *sx, int incx, double *sy, int incy)
 
void dcopy (int n, double *sx, int incx, double *sy, int incy)
 
double ddot (int n, double *sx, int incx, double *sy, int incy)
 
double dnrm2 (int n, double *sx, int incx)
 
void dexopy (int n, double *v, double *x, double *y, int itype)
 
void dfill (int n, double *v, double val)
 
double r2mach ()
 
double norm2 (int nn, double *v)
 
double prod_esc (int nn, double *v1, double *v2)
 
void dcopia (int nn, double *v1, double *v2)
 
int indmin (int nn, double *vv)
 
int indmax (int nn, double *vv)
 

Macro Definition Documentation

#define abs (   x)    ((x)>0.0?(x):-(x))
#define HUGEdp   1.79769313486232e+308 /* Largest binary float */
#define SMALLdp   2.22507385850720e-308 /* Smallest (pos) binary float */

Function Documentation

void daxpy ( int  n,
double  sa,
double *  sx,
int  incx,
double *  sy,
int  incy 
)
void daxpyx ( int  n,
double  sa,
double *  sx,
int  incx,
double *  sy,
int  incy 
)
void dcopia ( int  nn,
double *  v1,
double *  v2 
)
void dcopy ( int  n,
double *  sx,
int  incx,
double *  sy,
int  incy 
)
double ddot ( int  n,
double *  sx,
int  incx,
double *  sy,
int  incy 
)
void dexopy ( int  n,
double *  v,
double *  x,
double *  y,
int  itype 
)
void dfill ( int  n,
double *  v,
double  val 
)
double dnrm2 ( int  n,
double *  sx,
int  incx 
)
int idamax ( int  n,
double *  sx,
int  incx 
)
int indmax ( int  nn,
double *  vv 
)
int indmin ( int  nn,
double *  vv 
)
double norm2 ( int  nn,
double *  v 
)
double prod_esc ( int  nn,
double *  v1,
double *  v2 
)
double r2mach ( )
void write_double ( double *  v,
int  i,
int  j,
char *  nom 
)
void write_int ( int *  v,
int  i,
int  j,
char *  nom 
)