pystencils.sympyextensions.fast_approximation.fast_division

Contents

pystencils.sympyextensions.fast_approximation.fast_division#

class pystencils.sympyextensions.fast_approximation.fast_division(*args)#

Perform a fast approximate division on GPU targets.

This function is only supported on CUDA and HIP targets, where it will resolve to __fdividef. Using it on other targets will lead to an error during code generation.