Template Function sequant::detail::prune_scalar_factor¶
Defined in File export.hpp
Function Documentation¶
-
template<typename T>
bool sequant::detail::prune_scalar_factor(ExportNode<T> &node, PreprocessResult &result, PrunableScalars prunable)¶ Removes explicitly represented scalar factors from the provided tree and instead stores them separately. This yields a much more compact tree and makes subsequent visiting easier as scalar factors should simply be multiplied with the end result rather than creating intermediates themselves.