Symbolic Language
The new backend must support the full symbolic language that pystencils offered previously, plus some sensible additions. For now, however, the focus should be on implementing code generation support for all previously supported SymPy features, as well as everything in `pystencils.sympyextensions` and a few other submodules that add features to kernels.
## Symbolic Language Consolidation
All symbolic language features should be collected into the `pystencils.sympyextensions` module (as also discussed in pycodegen/pystencils#47).
Furthermore, the documentation should include a section that fully documents all SymPy features and our extensions which the code generator supports. This section should also point out any restrictions and caveats.
- [x] Set up symbolic language documentation
## FreezeExpressions
The language of pystencils will basically encompass everything that `pystencils.backend.FreezeExpressions` can translate.
Various pystencils features are still unimplemented:
- [x] Augmented Assignments
- [x] AddressOf (pycodegen/pystencils!394)
- [x] Relations (sp.Relational)
- [x] pystencils.sympyextensions.integer_functions
- [x] Bitwise ops
- [x] Integer Division
- [x] Fancy division operations (see pycodegen/pystencils#88)
- [x] pystencils.sympyextensions.bit_masks
- [x] GPU fast approximations (pystencils.fast_approximation)
- [x] ConditionalFieldAccess (pycodegen/pystencils!394)
- [x] sp.Piecewise (pycodegen/pystencils!393)
- [x] sp.floor, sp.ceiling (pycodegen/pystencils!394)
- [x] sp.log, sp.atan2, sp.sinh, sp.cosh. sp.atan (pycodegen/pystencils!394)
- [x] sp.Min, sp.Max: multi-argument versions (pycodegen/pystencils!394)
- ~~Modulus (sp.Mod)~~ not supported due to ambiguity between C and Python `%` operator
- Folding functions (`sp.Sum`, `sp.Product`, see pycodegen/pystencils#55)
- [x] Numerical Constants (pi and some of its multiples, Euler's number, ...)
## Random Number Generation
See #130.
## Control Flow Structures
Conditionals are reintroduced with !497. There are currently no plans to introduce loops to the front-end.
task