Template Struct Configuration

Struct Documentation

template<int D, typename FT = double>
struct Configuration

A D-dimensional configuration (in a D-dimensional configuration space ~= R^D).

Template Parameters:
  • D – C-Space dimension.

  • FT – Field type. Usually double.

Public Functions

inline Configuration()
template<typename ...Args>
inline Configuration(Args... args)
inline bool operator==(const Configuration &o) const
inline bool operator!=(const Configuration &o) const
inline bool operator<(const Configuration &o) const

Test component-wise.

Note

This is not a total order on the configurations.

inline bool operator<=(const Configuration &o) const

Test component-wise.

Note

This is not a total order on the configurations.

inline bool operator>(const Configuration &o) const

Test component-wise.

Note

This is not a total order on the configurations.

inline bool operator>=(const Configuration &o) const

Test component-wise.

Note

This is not a total order on the configurations.

inline Configuration<D, FT> operator+(const FT &delta) const
inline Configuration<D, FT> operator-(const FT &delta) const
inline Configuration<D, FT> &operator+=(const FT &delta)
inline Configuration<D, FT> &operator-=(const FT &delta)
inline FT &operator[](size_t i)

Get the ith element of the configuration.

inline const FT &operator[](size_t i) const

Set the ith element of the configuration.

inline std::string to_string() const

Public Members

std::array<FT, D> coords