pyccel
sympytorch
pyccel | sympytorch | |
---|---|---|
5 | 1 | |
331 | 125 | |
0.6% | - | |
9.2 | 5.3 | |
5 days ago | 10 months ago | |
Python | Python | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pyccel
-
Not to be taken serious lmao
check pyccel, it does the job
-
Help Writing a Compiler in Fortran
Pyccel is an active project that may interest you.
- Python extension language using accelerators
-
Mypyc: Compile type-annotated Python to C
There is also Pyccel https://github.com/pyccel/pyccel. When I last tried it, it worked on most small codes, but there were some bugs.
"The aim of Pyccel is to provide a simple way to generate automatically, parallel low level code. The main uses would be:
Convert a Python code (or project) into a Fortran or C code.
- Ask to contribute in a cuda project
sympytorch
-
Vectorization: Introduction
https://en.wikipedia.org/wiki/Vectorization :
> Array programming, a style of computer programming where operations are applied to whole arrays instead of individual elements
> Automatic vectorization, a compiler optimization that transforms loops to vector operations
> Image tracing, the creation of vector from raster graphics
> Word embedding, mapping words to vectors, in natural language processing
> Vectorization (mathematics), a linear transformation which converts a matrix into a column vector
Vector (disambiguation) https://en.wikipedia.org/wiki/Vector
> Vector (mathematics and physics):
> Row and column vectors, single row or column matrices
> Vector space
> Vector field, a vector for each point
And then there are a number of CS usages of the word vector for 1D arrays.
Compute kernel: https://en.m.wikipedia.org/wiki/Compute_kernel
GPGPU > Vectorization, Stream Processing > Compute kernels: https://en.wikipedia.org/wiki/General-purpose_computing_on_g...
sympy.utilities.lambdify.lambdify() https://github.com/sympy/sympy/blob/a76b02fcd3a8b7f79b3a88df... :
> """Convert a SymPy expression into a function that allows for fast numeric evaluation [with the CPython math module, mpmath, NumPy, SciPy, CuPy, JAX, TensorFlow, SymPt, numexpr,]
pyorch lambdify PR, sympytorch: https://github.com/sympy/sympy/pull/20516#issuecomment-78428...
sympytorch: https://github.com/patrick-kidger/sympytorch :
> Turn SymPy expressions into PyTorch Modules.
> SymPy floats (optionally) become trainable parameters. SymPy symbols are inputs to the Module.
sympy2jax https://github.com/MilesCranmer/sympy2jax :
> Turn SymPy expressions into parametrized, differentiable, vectorizable, JAX functions.
> All SymPy floats become trainable input parameters. SymPy symbols become columns of a passed matrix.
What are some alternatives?
typed_python - An llvm-based framework for generating and calling into high-performance native code from Python.
handyderivatives - Calc. on the command line - with LaTeX output.
mypyc - Compile type annotated Python to fast C extensions
sympy2jax - Turn SymPy expressions into trainable JAX expressions.
cudf - cuDF - GPU DataFrame Library
primify - Embed any image into a prime number.
fypp - Python powered Fortran preprocessor
SymPy - A computer algebra system written in pure Python
lowtran - LOWTRAN atmospheric absorption extinction, scatter and irradiance model--in Python and Matlab
devito - DSL and compiler framework for automated finite-differences and stencil computation
mypyc-benchmark-results - Mypyc benchmark result data
pex - A tool for generating .pex (Python EXecutable) files, lock files and venvs.