Function sequant::detail::format_tensor_power¶
Defined in File utils.cpp
Function Documentation¶
-
std::string sequant::detail::format_tensor_power(const TensorPower &power, std::string base_str, std::string_view pow_op, bool double_slash)¶
Formats an element-wise tensor power for export framework
- Parameters:
power – the TensorPower to format
base_str – the base of
poweralready rendered to a stringpow_op – the element-wise exponentiation operator of the target language
double_slash – see format_power_exponent
- Returns:
the formatted power