HermesCommon  3.0
common.h File Reference

File containing common definitions, and basic global enums etc. for HermesCommon. More...

#include <complex>
#include <vector>
#include <stdexcept>
#include <cstdarg>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <assert.h>
#include <math.h>
#include <initializer_list>
#include <time.h>
#include <float.h>
#include <climits>
#include <limits.h>
#include <errno.h>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstring>
#include <map>
#include <cstdio>
#include <stdarg.h>
#include <sstream>
#include <tr1/memory>
#include <algorithm>
#include <limits>
#include <set>
#include <queue>
#include <fstream>
#include <iostream>
#include <signal.h>
#include <utility>
#include "config.h"
#include "matio.h"
#include <omp.h>
#include <inttypes.h>

Go to the source code of this file.

Classes

class  Scalar2< Scalar >
 
class  Scalar3< Scalar >
 
struct  Hermes::Helpers::TypeIsReal< Scalar >
 Type deductors. More...
 
struct  Hermes::Helpers::TypeIsComplex< Scalar >
 
struct  Hermes::Helpers::TypeIsReal< double >
 
struct  Hermes::Helpers::TypeIsComplex< std::complex< double > >
 

Namespaces

 Hermes
 General namespace for the Hermes library.
 

Macros

#define M_PI   3.14159265358979323846
 
#define HERMES_EC_ERROR   'E'
 An event code: warnings.
 
#define HERMES_EC_WARNING   'W'
 An event code: warnings.
 
#define HERMES_EC_INFO   'I'
 An event code: info about results.
 
#define HERMES_LOG_FILE_DELIM_SIZE   80
 A size of a delimiter in a log file.
 
#define BUF_SZ   2048
 
#define __CURRENT_FUNCTION   __PRETTY_FUNCTION__
 A platform-dependent string defining a current function.
 

Typedefs

typedef int int2 [2]
 Int types handling.
 
typedef int int3 [3]
 
typedef int int4 [4]
 
typedef int int5 [5]
 
typedef double double2 [2]
 
typedef double double3 [3]
 
typedef double double4 [4]
 
typedef double double2x2 [2][2]
 
typedef double double2x3 [2][3]
 
typedef double double2x4 [2][4]
 
typedef double double3x2 [3][2]
 
typedef double double3x3 [3][3]
 
typedef double double3x4 [3][4]
 
typedef float float2 [2]
 
typedef float float3 [3]
 
typedef float float4 [4]
 
typedef float float2x2 [2][2]
 
typedef float float2x3 [2][3]
 
typedef float float2x4 [2][4]
 
typedef float float3x2 [3][2]
 
typedef float float3x3 [3][3]
 
typedef float float3x4 [3][4]
 

Functions

int Hermes::sqr (int x)
 
double Hermes::sqr (double x)
 
double Hermes::sqrt (double x)
 
double Hermes::sqr (std::complex< double > x)
 
double Hermes::magn (double x)
 
double Hermes::conj (double a)
 
double Hermes::cos (double x)
 
double Hermes::sin (double x)
 
double Hermes::atan (double x)
 
double Hermes::atan2 (double x, double y)
 
double Hermes::abs (double x)
 
double Hermes::pow (double x, double y)
 
double Hermes::log (double x)
 
template<typename T >
void Hermes::Helpers::check_for_null (T instance)
 Check for nullptr.
 
template<typename T >
void Hermes::Helpers::check_length (const std::vector< T > &instance, const unsigned int length)
 Check length of a vector.
 
template<typename T , typename U >
void Hermes::Helpers::check_length (const std::vector< T > &instanceT, const std::vector< U > &instanceU)
 Check length of a vector.
 
void Hermes::Helpers::fprint_num (FILE *f, double x, char *number_format)
 Number printers.
 
void Hermes::Helpers::fprint_num (FILE *f, std::complex< double > x, char *number_format)
 
template<typename Scalar >
void Hermes::Helpers::fprint_coordinate_num (FILE *f, int i, int j, Scalar x, char *number_format)
 

Variables

const double Hermes::HermesEpsilon = std::numeric_limits<double>::epsilon() * 10.
 
const double Hermes::HermesSqrtEpsilon = std::sqrt(std::numeric_limits<double>::epsilon())
 
const std::string Hermes::HERMES_ANY = "-1234"
 
const int Hermes::HERMES_ANY_INT = -1234
 

Detailed Description

File containing common definitions, and basic global enums etc. for HermesCommon.

Definition in file common.h.