Manticore
Version 2.0alpha
Physics of Molecular Clouds
|
The MathUtils miscellaneous utilities library. More...
#include "mutils/platform.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
Go to the source code of this file.
Macros | |
#define | mu_alloc(s) mu_alloc_r(NULL, s) |
#define | MU_DATEMAX 24 /* Max length of cppdate string. */ |
#define | mu_free(p) mu_free_r(NULL, p) |
#define | mu_freeall() mu_freeall_r(NULL) |
#define | MU_iferr(err, func) |
#define | MU_iferr_abort(err, func) |
#define | MU_iferr_warn(err, func) |
#define | MU_iferrn(err, func) |
#define | MU_iferrn_abort(err, func) |
#define | MU_iferrn_warn(err, func) |
#define | mu_realloc(p, s) mu_realloc_r(NULL, p, s) |
#define | MU_VERMAX 32 /* Max length of version string. */ |
Functions | |
DLLSPEC void * | mu_alloc_r (void **, size_t) |
DLLSPEC int | mu_clock_Hz (void) |
DLLSPEC double | mu_clock_time (void) |
DLLSPEC void | mu_cppdate (char str[], const char *date, const char *time) |
DLLSPEC double | mu_cpu_time (void) |
DLLSPEC void | mu_error_action (int, const char *, const char *, int, int) |
DLLSPEC char * | mu_fgetline (char *, long int, FILE *) |
DLLSPEC int | mu_free_r (void **, void *) |
DLLSPEC void | mu_freeall_r (void *) |
DLLSPEC int | mu_getopt (int argc, char *const argv[], const char *opts) |
DLLSPEC const char * | mu_platform (void) |
DLLSPEC int | mu_ppmtext (char *, char *, int, int, int) |
DLLSPEC double | mu_process_cpu_time (void) |
DLLSPEC double | mu_real_clock_time (void) |
DLLSPEC void * | mu_realloc_r (void **, void *, size_t) |
DLLSPEC void | mu_split_tag (char pre[], int *maj, int *min, int *clas, int *bug, int *y, int *m, int *d, const char *tag) |
DLLSPEC double | mu_system_time (void) |
DLLSPEC double | mu_thread_cpu_time (void) |
DLLSPEC double | mu_time_binary (double(*fn)(double, double), double x1, double x2, double y1, double y2, double tmin) |
DLLSPEC double | mu_time_trinary (double(*fn)(double, double, double), double x1, double x2, double y1, double y2, double z1, double z2, double tmin) |
DLLSPEC double | mu_time_unary (double(*fn)(double), double x1, double x2, double tmin) |
DLLSPEC double | mu_user_time (void) |
DLLSPEC char * | mu_utoa9 (char *str, unsigned i, int strip) |
DLLSPEC int | mu_vernum (const char *name, const char *cvs) |
DLLSPEC const char * | mu_version (void) |
DLLSPEC const char * | mu_verstr (char verstr[], const char *pre, int maj, int min, int clas, int bug) |
DLLSPEC void | mu_wait_time (double) |
Variables | |
DLLSPEC char * | mu_optarg |
DLLSPEC int | mu_opterr |
DLLSPEC int | mu_optind |
DLLSPEC int | mu_optopt |
The MathUtils miscellaneous utilities library.
Includes the following common headers:
<mutils/util.h>
<algorithm>
<map>
<string>
<vector>
<mutils/Exception.h>
<mutils/Log.h>
(via Exception.h
)Aliases the following common values into the mutils namespace:
Author: Kevin P. Rauch <rauch> @ast ro.um d.ed u
Definition in file util.h.
#define mu_alloc | ( | s | ) | mu_alloc_r(NULL, s) |
#define mu_freeall | ( | ) | mu_freeall_r(NULL) |
#define MU_iferr | ( | err, | |
func | |||
) |
#define MU_iferr_abort | ( | err, | |
func | |||
) |
#define MU_iferr_warn | ( | err, | |
func | |||
) |
#define MU_iferrn | ( | err, | |
func | |||
) |
#define MU_iferrn_abort | ( | err, | |
func | |||
) |
#define MU_iferrn_warn | ( | err, | |
func | |||
) |
#define mu_realloc | ( | p, | |
s | |||
) | mu_realloc_r(NULL, p, s) |
DLLSPEC void * mu_alloc_r | ( | void ** | , |
size_t | |||
) |
DLLSPEC int mu_clock_Hz | ( | void | ) |
DLLSPEC double mu_clock_time | ( | void | ) |
DLLSPEC void mu_cppdate | ( | char | str[], |
const char * | date, | ||
const char * | time | ||
) |
DLLSPEC double mu_cpu_time | ( | void | ) |
DLLSPEC void mu_error_action | ( | int | , |
const char * | , | ||
const char * | , | ||
int | , | ||
int | |||
) |
DLLSPEC char * mu_fgetline | ( | char * | , |
long | int, | ||
FILE * | |||
) |
DLLSPEC int mu_free_r | ( | void ** | , |
void * | |||
) |
DLLSPEC void mu_freeall_r | ( | void * | ) |
DLLSPEC int mu_getopt | ( | int | argc, |
char *const | argv[], | ||
const char * | opts | ||
) |
DLLSPEC const char* mu_platform | ( | void | ) |
DLLSPEC int mu_ppmtext | ( | char * | , |
char * | , | ||
int | , | ||
int | , | ||
int | |||
) |
DLLSPEC double mu_process_cpu_time | ( | void | ) |
DLLSPEC double mu_real_clock_time | ( | void | ) |
DLLSPEC void * mu_realloc_r | ( | void ** | , |
void * | , | ||
size_t | |||
) |
DLLSPEC void mu_split_tag | ( | char | pre[], |
int * | maj, | ||
int * | min, | ||
int * | clas, | ||
int * | bug, | ||
int * | y, | ||
int * | m, | ||
int * | d, | ||
const char * | tag | ||
) |
DLLSPEC double mu_system_time | ( | void | ) |
DLLSPEC double mu_thread_cpu_time | ( | void | ) |
DLLSPEC double mu_time_binary | ( | double(*)(double, double) | fn, |
double | x1, | ||
double | x2, | ||
double | y1, | ||
double | y2, | ||
double | tmin | ||
) |
DLLSPEC double mu_time_trinary | ( | double(*)(double, double, double) | fn, |
double | x1, | ||
double | x2, | ||
double | y1, | ||
double | y2, | ||
double | z1, | ||
double | z2, | ||
double | tmin | ||
) |
DLLSPEC double mu_time_unary | ( | double(*)(double) | fn, |
double | x1, | ||
double | x2, | ||
double | tmin | ||
) |
DLLSPEC double mu_user_time | ( | void | ) |
DLLSPEC char* mu_utoa9 | ( | char * | str, |
unsigned | i, | ||
int | strip | ||
) |
DLLSPEC int mu_vernum | ( | const char * | name, |
const char * | cvs | ||
) |
DLLSPEC const char * mu_version | ( | void | ) |
DLLSPEC const char * mu_verstr | ( | char | verstr[], |
const char * | pre, | ||
int | maj, | ||
int | min, | ||
int | clas, | ||
int | bug | ||
) |
DLLSPEC void mu_wait_time | ( | double | ) |
DLLSPEC char* mu_optarg |
DLLSPEC int mu_opterr |
DLLSPEC int mu_optind |
DLLSPEC int mu_optopt |