home
about
news
download
doc
source
systems
tests
bugs
contact
IMP Reference Guide
develop.eb1b99edaa,2026/06/22
The Integrative Modeling Platform
IMP Manual
Reference Guide
Tutorial Index
Modules
Classes
Examples
include
IMP
version 20260622.develop.eb1b99edaa
constants.h
Go to the documentation of this file.
1
/**
2
* \file IMP/constants.h \brief Various useful constants.
3
*
4
* Copyright 2007-2026 IMP Inventors. All rights reserved.
5
*
6
*/
7
8
#ifndef IMPKERNEL_CONSTANTS_H
9
#define IMPKERNEL_CONSTANTS_H
10
11
#include <IMP/kernel_config.h>
12
#include <cmath>
13
14
IMPKERNEL_BEGIN_NAMESPACE
15
#if !defined(IMP_DOXYGEN) && !defined(SWIG)
16
#if defined(_GLIBCXX_USE_C99_MATH) && defined(__GNUC__)
17
//! the constant pi
18
static
const
double
PI = M_PI;
19
#else
20
//! the constant pi
21
static
const
double
PI = 3.1415926535897931;
22
#endif // C99
23
#endif
24
25
//! Use this value when you want to turn off maximum for restraint evaluation
26
IMPKERNELEXPORT
extern
const
double
NO_MAX
;
27
/** Evaluation can return this value if limits are exceeded and
28
it is a ScoringFunction::evaluate_if_below() or
29
ScoringFunction::evaluate_if_good
30
*/
31
IMPKERNELEXPORT
extern
const
double
BAD_SCORE
;
32
IMPKERNEL_END_NAMESPACE
33
34
#endif
/* IMPKERNEL_CONSTANTS_H */
IMP::NO_MAX
const double NO_MAX
Use this value when you want to turn off maximum for restraint evaluation.
IMP::BAD_SCORE
const double BAD_SCORE