A trampoline struct you can use as a Specialiser
target to easily chain TensorFlatten
with the default specialisers.
More...
#include <TensorFlatteningTrampoline.hpp>
Inherits T.
Static Public Member Functions | |
template<typename... Args> | |
static void | run (Args &&... args) |
A trampoline struct you can use as a Specialiser
target to easily chain TensorFlatten
with the default specialisers.
Tensor
flattening works best after other specialisers, so a useful thing to do is to fire the default specialisers at TensorFlatteningTrampoline<YourActualSpecialisationTarget>
.
This inherits from T
(the eventual target type) so it will inherit the same specialisation pruning fields as T
, preventing unnecessary codegen.