GMatTensor 0.10.6
Loading...
Searching...
No Matches
config.h File Reference

Macros used in the library. More...

#include <algorithm>
#include <string>
#include <xtensor/xtensor.hpp>

Go to the source code of this file.

Classes

struct  GMatTensor::allocate< RANK, T >
 Helper to allocate 'output' which is of the same type of some 'input', but of a different rank. More...
 

Namespaces

namespace  GMatTensor
 Tensor products / operations.
 
namespace  GMatTensor::array_type
 Container type.
 

Macros

#define GMATTENSOR_ASSERT(expr)
 All assertions are implementation as: More...
 

Typedefs

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

Detailed Description

Macros used in the library.

License: This project is released under the MIT License.

Definition in file config.h.

Macro Definition Documentation

◆ GMATTENSOR_ASSERT

#define GMATTENSOR_ASSERT (   expr)

All assertions are implementation as:

GMATTENSOR_ASSERT(...)

They can be enabled by:

#define GMATTENSOR_ENABLE_ASSERT

(before including GMatTensor). The advantage is that:

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

Definition at line 59 of file config.h.