transonic.aheadoftime
User runtime API for the ahead-of-time compilation
User API
- transonic.aheadoftime.boost(obj=None, backend: Optional[str] = None, inline=False, boundscheck=True, wraparound=True, cdivision=False, nonecheck=True, nogil=False)[source]
Decorator to declare that an object can be accelerated
- Parameters
- obj: a function, a method or a class
- class transonic.aheadoftime.Transonic(use_transonified=True, frame=None, reuse=True, backend=None)[source]
Bases:
object
Representation of a module using ahead-of-time transonic commands
- Parameters
- use_transonifiedbool (optional, default True)
If False, don’t use the pythranized versions at run time
- frameint (optional)
(Internal) Frame of
__init__
caller.- reusebool (optional, default True)
(Internal) If True, do not recreate an instance.
- boost(**kwargs)[source]
Universal decorator for AOT compilation
Used for functions, methods and classes.
Internal API
Functions
|
Decorator to declare that an object can be accelerated |
|
Modify the class by replacing jit methods |
Classes
|
Check if the module is being compiled and replace the module and the function |
|
Representation of a module using ahead-of-time transonic commands |
|
Internal temporary class for JIT methods |
|
Internal temporary class for methods |