GooseEYE 0.9.1
Loading...
Searching...
No Matches
config.h File Reference
#include <algorithm>
#include <assert.h>
#include <cstdlib>
#include <exception>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <math.h>
#include <memory>
#include <numeric>
#include <string>
#include <type_traits>
#include <vector>
#include <xtensor/xadapt.hpp>
#include <xtensor/xarray.hpp>
#include <xtensor/xio.hpp>
#include <xtensor/xmath.hpp>
#include <xtensor/xpad.hpp>
#include <xtensor/xsort.hpp>
#include <xtensor/xtensor.hpp>
#include <xtensor/xview.hpp>

Go to the source code of this file.

Namespaces

namespace  GooseEYE
 Toolbox to compute statistics.
 
namespace  GooseEYE::array_type
 Container type.
 

Macros

#define GOOSEEYE_REQUIRE(expr, assertion)    GOOSEEYE_ASSERT_IMPL(expr, assertion, __FILE__, __LINE__, __FUNCTION__)
 Assertions that are always enabled.
 
#define GOOSEEYE_ASSERT(expr, assertion)
 All assertions are implemented as:
 
#define GOOSEEYE_WARNING(message)   GOOSEEYE_WARNING_IMPL(message, __FILE__, __LINE__, __FUNCTION__)
 Warnings are implemented as:
 
#define GOOSEEYE_WARNING_PYTHON(message)
 Warnings specific to the Python API are implemented as:
 

Typedefs

template<typename T , size_t N>
using GooseEYE::array_type::tensor = xt::xtensor<T, N>
 Fixed (static) rank array.
 
template<typename T >
using GooseEYE::array_type::array = xt::xarray<T>
 Dynamic rank array.
 

Detailed Description

License: This project is released under the GPLv3 License.

Definition in file config.h.

Macro Definition Documentation

◆ GOOSEEYE_ASSERT

#define GOOSEEYE_ASSERT ( expr,
assertion )

All assertions are implemented as:

GOOSEEYE_ASSERT(...)

They can be enabled by:

#define GOOSEEYE_ENABLE_ASSERT

(before including GooseEYE). The advantage is that:

  • File and line-number are displayed if the assertion fails.
  • GooseEYE's assertions can be enabled/disabled independently from those of other libraries.
Exceptions
std::runtime_error

Definition at line 91 of file config.h.

◆ GOOSEEYE_REQUIRE

#define GOOSEEYE_REQUIRE ( expr,
assertion )    GOOSEEYE_ASSERT_IMPL(expr, assertion, __FILE__, __LINE__, __FUNCTION__)

Assertions that are always enabled.

Definition at line 67 of file config.h.

◆ GOOSEEYE_WARNING

#define GOOSEEYE_WARNING ( message)    GOOSEEYE_WARNING_IMPL(message, __FILE__, __LINE__, __FUNCTION__)

Warnings are implemented as:

 GOOSEEYE_WARNING(...)

They can be disables by:

 #define GOOSEEYE_DISABLE_WARNING

Definition at line 104 of file config.h.

◆ GOOSEEYE_WARNING_PYTHON

#define GOOSEEYE_WARNING_PYTHON ( message)

Warnings specific to the Python API are implemented as:

 GOOSEEYE_WARNING_PYTHON(...)

They can be enabled by:

 #define GOOSEEYE_ENABLE_WARNING_PYTHON

Definition at line 122 of file config.h.