#include <iostream>
#include <fstream>
#include <sstream>
#include <stdlib.h>
#include <iomanip>
#include <algorithm>
#include <deque>
#include <list>
#include <queue>
#include <set>
#include <time.h>
#include <stdint.h>
Go to the source code of this file.
Namespaces |
| namespace | util |
Defines |
| #define | t_UnsignedInt uint64_t |
| #define | t_uint uint64_t |
| #define | t_MPI_UNSIGNED_INT MPI_UNSIGNED_LONG |
| #define | minval(a, b) (((a)>(b)) ? (b) : (a)) |
| #define | maxval(a, b) (((a)<(b)) ? (b) : (a)) |
Enumerations |
| enum | direct_enum_score { MIN_METAB_FUNC,
ROBUST_DESIGN
} |
Functions |
| bool | util::strcmp_ignore_case (string first, string second) |
| int | util::current_time (double *t) |
| string | util::get_time_str () |
| int | util::get_proc_id_nump (int &proc_id, int &nump) |
| void | util::fast_gcd (double *a, t_UnsignedInt len, double *gcd) |
| double | util::infnormvec (vector< vector< double > > A) |
| int | util::right_nullspace_integer (vector< vector< double > > &A, vector< vector< double > > &K) |
| int | util::right_nullspace_nonint (vector< vector< double > > &A, vector< vector< double > > &K) |
| int | util::swap_rows (vector< vector< double > > &mat, t_UnsignedInt row1, t_UnsignedInt row2) |
| int | util::swap_columns (vector< vector< double > > &mat, t_UnsignedInt col1, t_UnsignedInt col2) |
| t_UnsignedInt | util::row_echelon (vector< vector< double > > mat, t_UnsignedInt reduced, vector< t_UnsignedInt > rowmap, vector< t_UnsignedInt > colmap) |
| int | util::nullspace (vector< vector< double > > mat, vector< vector< double > > &kernel) |
| string | util::trim_right (const string &source, const string &t=" ") |
| string | util::trim_left (const string &source, const string &t=" ") |
| string | util::trim (const string &source, const string &t=" ") |
| bool | util::file_exists (const string &fname) |
Define Documentation
| #define maxval |
( |
|
a, |
|
|
|
b |
|
) |
| (((a)<(b)) ? (b) : (a)) |
| #define minval |
( |
|
a, |
|
|
|
b |
|
) |
| (((a)>(b)) ? (b) : (a)) |
| #define t_MPI_UNSIGNED_INT MPI_UNSIGNED_LONG |
| #define t_UnsignedInt uint64_t |
Enumeration Type Documentation
- Enumerator:
| MIN_METAB_FUNC |
|
| ROBUST_DESIGN |
|
Definition at line 66 of file util.h.