generalize algebra dispatcher for floating point types, generalize norm_inf_result for complex value types