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) More... | |
template<std::size_t N> | |
constexpr std::size_t | factorial () |
Compile time evaluation of the factorial of N. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
constexpr std::size_t CompileTimeDerivativesMaterialInternal::details::factorial | ( | ) |
Compile time evaluation of the factorial of N.
Definition at line 42 of file CompileTimeDerivativesMaterialInternal.h.
Referenced by num_derivatives().
constexpr auto CompileTimeDerivativesMaterialInternal::details::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.
This basically increments a base-Nmax number with its digits in reverse!
Definition at line 78 of file CompileTimeDerivativesMaterialInternal.h.
Referenced by FillBetweenPointVectorsTools::fillBetweenPointVectorsGenerator().
constexpr bool CompileTimeDerivativesMaterialInternal::details::is_sorted | ( | ) |
Check if the given index sequence is sorted ()internal function)
Definition at line 24 of file CompileTimeDerivativesMaterialInternal.h.
Referenced by CompileTimeDerivativesMaterialInternal::is_sorted(), CompileTimeDerivativesMaterial< N, is_ad, MaxD >::loopDeclareProperties(), CompileTimeDerivativesMaterial< N, is_ad, MaxD >::loopEvaluate(), ParsedCurveGenerator::ParsedCurveGenerator(), and TimeSequenceStepperBase::setupSequence().
constexpr auto CompileTimeDerivativesMaterialInternal::details::merge | ( | std::index_sequence< first... > | , |
std::index_sequence< second... > | |||
) |
Merge two index sequences into one.
Definition at line 67 of file CompileTimeDerivativesMaterialInternal.h.
Referenced by Moose::Builder::build(), increment(), TimeIntegrator::init(), and Parser::parse().
constexpr std::size_t CompileTimeDerivativesMaterialInternal::details::num_derivatives | ( | ) |
Number of distinct order N derivatives of a function with M variables.
Definition at line 57 of file CompileTimeDerivativesMaterialInternal.h.
constexpr std::size_t CompileTimeDerivativesMaterialInternal::details::total_derivatives | ( | std::index_sequence< N... > | ) |
Compute the total number of distinct derivatives for all orders N.
Definition at line 96 of file CompileTimeDerivativesMaterialInternal.h.
constexpr auto CompileTimeDerivativesMaterialInternal::details::zeroes | ( | std::index_sequence< Ns... > | ) |
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().