Sign inSign up

cg626/smop

By cg626

Updated over 4 years ago

SMOP is Small Matlab and Octave to Python compiler.

Image
0

65

cg626/smop repository overview

SMOP is Small Matlab and Octave to Python compiler. SMOP translates matlab to python. Despite obvious similarities between matlab and numeric python, there are enough differences to make manual translation infeasible in real life. SMOP generates human-readable python, which also appears to be faster than octave. Just how fast? Timing results for "Moving furniture" are shown in Table 1. It seems that for this program, translation to python resulted in about two times speedup, and additional two times speedup was achieved by compiling SMOP run-time library runtime.py to C, using cython. This pseudo-benchmark measures scalar performance, and my interpretation is that scalar computations are of less interest to the octave team.

Dockerfile

FROM rackspacedot/python37

RUN pip install smop && \
    pip install networkx==2.3 && \
    pip install pandas numpy

WORKDIR /wdir
 
CMD ["smop"]

Tag summary

Content type

Image

Digest

Size

487.6 MB

Last updated

over 4 years ago

docker pull cg626/smop:1.0