guanaqo develop
Utilities for scientific software
Loading...
Searching...
No Matches
lut.hpp File Reference

Detailed Description

Compile-time lookup table generators.

Definition in file lut.hpp.

#include <array>
#include <type_traits>
#include <utility>
Include dependency graph for lut.hpp:

Go to the source code of this file.

Classes

struct  guanaqo::detail::lut< N, Ns... >
struct  guanaqo::detail::lut< Arr, Ns... >
struct  guanaqo::detail::lut<>

Namespaces

namespace  guanaqo
namespace  guanaqo::detail

Functions

template<class I, I R, I C, class F>
consteval auto guanaqo::make_2d_lut (F f)
 Returns a 2D array of the form:
template<class I, I N, class F>
consteval auto guanaqo::make_1d_lut (F f)
 Returns an array of the form:
template<auto... Ranges, class F>
consteval auto guanaqo::make_lut (F f)
 Generalization of make_1d_lut and make_2d_lut.