Functions | |
| template<std::size_t first, std::size_t second, std::size_t... tail> | |
| constexpr bool | is_sorted () |
| Check if the given index sequence is sorted ()internal function) | |
| template<std::size_t N> | |
| constexpr std::size_t | factorial () |
| Compile time evaluation of the factorial of N. | |
| template<std::size_t N, std::size_t M> | |
| constexpr std::size_t | num_derivatives () |
| Number of distinct order N derivatives of a function with M variables. | |
| template<std::size_t... first, std::size_t... second> | |
| constexpr auto | merge (std::index_sequence< first... >, std::index_sequence< second... >) |
| Merge two index sequences into one. | |
| template<std::size_t Nmax, std::size_t first, std::size_t... tail> | |
| constexpr auto | increment (std::index_sequence< first, tail... >) |
| Increment the first number in an index sequence, but roll over into the next number if it reaches Nmax. | |
| template<std::size_t M, std::size_t... N> | |
| constexpr std::size_t | total_derivatives (std::index_sequence< N... >) |
| Compute the total number of distinct derivatives for all orders N. | |
| template<std::size_t... Ns> | |
| constexpr auto | zeroes (std::index_sequence< Ns... >) |
| Take an index sequence and return an index sequence of the same length with all entries replaced by zeroes. | |
|
constexpr |
Compile time evaluation of the factorial of N.
Definition at line 42 of file CompileTimeDerivativesMaterialInternal.h.
Referenced by factorial(), and num_derivatives().
|
constexpr |
Increment the first number in an index sequence, but roll over into the next number if it reaches Nmax.
This basically increments a base-Nmax number with its digits in reverse!
Definition at line 78 of file CompileTimeDerivativesMaterialInternal.h.
|
constexpr |
Check if the given index sequence is sorted ()internal function)
Definition at line 24 of file CompileTimeDerivativesMaterialInternal.h.
Referenced by is_sorted(), and CompileTimeDerivativesMaterialInternal::is_sorted().
|
constexpr |
Merge two index sequences into one.
Definition at line 67 of file CompileTimeDerivativesMaterialInternal.h.
Referenced by increment().
|
constexpr |
Number of distinct order N derivatives of a function with M variables.
Definition at line 57 of file CompileTimeDerivativesMaterialInternal.h.
|
constexpr |
Compute the total number of distinct derivatives for all orders N.
Definition at line 96 of file CompileTimeDerivativesMaterialInternal.h.
|
constexpr |
Take an index sequence and return an index sequence of the same length with all entries replaced by zeroes.
Definition at line 107 of file CompileTimeDerivativesMaterialInternal.h.
Referenced by CompileTimeDerivativesMaterialInternal::zeroes().