* 1/sqrt(2)
*/
static const double SQRT1_2 = 0.70710678118654752440;
-
- /**
- * Return @p true if the given
- * value is a finite floating point
- * number, i.e. is neither plus or
- * minus infinity nor NaN (not a
- * number).
- */
- bool is_finite (const double x);
}
#endif
--- /dev/null
+//---------------------------------------------------------------------------
+// $Id$
+// Version: $Name$
+//
+// Copyright (C) 2006 by the deal.II authors
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//---------------------------------------------------------------------------
+#ifndef __deal2__numbers_h
+#define __deal2__numbers_h
+
+#include <base/config.h>
+#include <cmath>
+#include <limits>
+
+
+/**
+ * Namespace for the declaration of universal constants. Since the
+ * availability in <tt>math.h</tt> is not always guaranteed, we put
+ * them here.
+ *
+ * The constants defined here are a subset of the <tt>M_XXX</tt> constants
+ * sometimes declared in the system include file <tt>math.h</tt>, but without
+ * the prefix <tt>M_</tt>.
+ *
+ * In addition to that, we declare <tt>invalid_unsigned_int</tt> to be the
+ * largest unsigned integer representable; this value is widely used in
+ * the library as a marker for an invalid index, an invalid size of an
+ * array, and similar purposes.
+ *
+ * Most of the members of this namespace are defined in
+ * <tt>base/config.h</tt>. Nevertheless, the inline functions are in
+ * <tt>base/numbers.h</tt>.
+ */
+namespace deal_II_numbers
+{
+ /**
+ * Return @p true if the given
+ * value is a finite floating point
+ * number, i.e. is neither plus or
+ * minus infinity nor NaN (not a
+ * number).
+ */
+
+ inline bool is_finite (const double x)
+ {
+#ifdef DEAL_II_HAVE_ISFINITE
+ return std::isfinite (x);
+#else
+ // check against infinities. not
+ // that if x is a NaN, then both
+ // comparisons will be false
+ return ((x >= std::numeric_limits<double>::min())
+ &&
+ (x <= std::numeric_limits<double>::max()));
+#endif
+ }
+}
+
+#endif
+++ /dev/null
-//---------------------------------------------------------------------------
-// $Id$
-// Version: $Name$
-//
-// Copyright (C) 2006 by the deal.II authors
-//
-// This file is subject to QPL and may not be distributed
-// without copyright and license information. Please refer
-// to the file deal.II/doc/license.html for the text and
-// further information on this license.
-//
-//---------------------------------------------------------------------------
-
-
-#include <base/config.h>
-#include <cmath>
-#include <limits>
-
-
-namespace deal_II_numbers
-{
- bool is_finite (const double x)
- {
-#ifdef DEAL_II_HAVE_ISFINITE
- return std::isfinite (x);
-#else
- // check against infinities. not
- // that if x is a NaN, then both
- // comparisons will be false
- return ((x >= std::numeric_limits<double>::min())
- &&
- (x <= std::numeric_limits<double>::max()));
-#endif
- }
-}
#! /bin/sh
-# From configure.in Revision: 1.221 .
+# From configure.in Revision: 1.222 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for deal.II 5.3.pre.
#
#endif
-/**
- * Have a namespace into which we declare some numeric constants, such
- * as pi. Unfortunately, these are not always available, on all systems
- * or depending on compiler flags, so we duplicate their declarations
- * here to make them unconditionally available to all other parts of the
- * library.
- *
- * The constants defined here are a subset of the <tt>M_XXX</tt> constants
- * sometimes declared in the system include file <tt>math.h</tt>, but without
- * the prefix <tt>M_</tt>.
- *
- * In addition to that, we declare <tt>invalid_unsigned_int</tt> to be the
- * largest unsigned integer representable; this value is widely used in
- * the library as a marker for an invalid index, an invalid size of an
- * array, and similar purposes.
- */
namespace deal_II_numbers {
/**
* Representation of the
* 1/sqrt(2)
*/
static const double SQRT1_2 = 0.70710678118654752440;
-
- /**
- * Return @p true if the given
- * value is a finite floating point
- * number, i.e. is neither plus or
- * minus infinity nor NaN (not a
- * number).
- */
- bool is_finite (const double x);
}
#endif
#include <base/config.h>
+#include <base/numbers.h>
#include <base/table.h>
#include <base/smartpointer.h>
#include <lac/block_indices.h>
#include <base/config.h>
+#include <base/numbers.h>
#include <base/table.h>
#include <lac/exceptions.h>
#include <base/config.h>
+#include <base/numbers.h>
#include <base/subscriptor.h>
#include <base/smartpointer.h>
#include <lac/sparsity_pattern.h>
#include <base/config.h>
+#include <base/numbers.h>
#include <base/subscriptor.h>
#include <base/smartpointer.h>
#include <lac/exceptions.h>
#include <base/config.h>
+#include <base/numbers.h>
#include <base/exceptions.h>
#include <base/subscriptor.h>