Multiscale Universal Interface  2.0
A Concurrent Framework for Coupling Heterogeneous Solvers
util.h File Reference

Provides a number of utility functions used through the rest of the library. More...

#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <csignal>
#include <cstring>
#include <cstdio>
#include <cstdint>
#include <chrono>
#include <fstream>
#include <iostream>
#include <limits>
#include <memory>
#include <string>
#include <functional>
#include <stdexcept>
#include <atomic>
#include <algorithm>
#include <deque>
#include <list>
#include <map>
#include <set>
#include <unordered_map>
#include <vector>
#include <complex>
#include <numeric>
#include <array>
#include "../storage/stream.h"
#include "../geometry/point.h"
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mui::triple< T1, T2, T3 >
 

Namespaces

 mui
 

Typedefs

using mui::uint = unsigned int
 
typedef unsigned long long mui::ull
 
typedef unsigned long long mui::llong
 

Functions

void mui::set_quiet (bool q)
 
template<typename REAL >
REAL mui::clamp (REAL x, REAL l, REAL r)
 
template<typename REAL >
REAL mui::sgn (REAL x)
 
template<uint N>
double mui::powr (const double x)
 
template<>
double mui::powr< 2 > (const double x)
 
template<>
double mui::powr< 1 > (const double x)
 
template<class T >
bool mui::almost_equal (T x, T y)
 
template<typename T >
mui::frexp10 (T arg, int &exp)
 
template<typename T >
mui::frexp10 (T arg, long &exp)
 
template<class T >
mui::threshold (T x)
 
template<>
double mui::powr< 0 > (const double x)
 
template<typename T , uint D>
ostream & mui::operator<< (ostream &stream, const point< T, D > &p)
 
template<typename T , uint D>
istream & mui::operator>> (istream &stream, point< T, D > &p)
 

Detailed Description

Provides a number of utility functions used through the rest of the library.

Author
Y. H. Tang
Date
9 December 2013