skimpy.utils.compile_sympy
==========================
.. py:module:: skimpy.utils.compile_sympy
.. autoapi-nested-parse::
.. module:: skimpy
:platform: Unix, Windows
:synopsis: Simple Kinetic Models in Python
.. moduleauthor:: SKiMPy team
[---------]
Copyright 2017 Laboratory of Computational Systems Biotechnology (LCSB),
Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIE CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Attributes
----------
.. autoapisummary::
skimpy.utils.compile_sympy.COMPILER
skimpy.utils.compile_sympy.INCLUDE
skimpy.utils.compile_sympy.FUNCTION_DEFINITION_HEADER
skimpy.utils.compile_sympy.FUNCTION_DEFINITION_FOOTER
Functions
---------
.. autoapisummary::
skimpy.utils.compile_sympy.make_cython_function
skimpy.utils.compile_sympy.write_code_to_tempfile
skimpy.utils.compile_sympy.generate_vectorized_code
skimpy.utils.compile_sympy.generate_a_code_line_simplfied
skimpy.utils.compile_sympy.generate_a_code_line
Module Contents
---------------
.. py:data:: COMPILER
:value: 'gcc -fPIC -shared -w -O3'
.. py:data:: INCLUDE
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""#include
#include
"""
.. raw:: html
.. py:data:: FUNCTION_DEFINITION_HEADER
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""void function(double *input_array, double *output_array){
"""
.. raw:: html
.. py:data:: FUNCTION_DEFINITION_FOOTER
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
""";
}"""
.. raw:: html
.. py:function:: make_cython_function(symbols, expressions, quiet=True, simplify=True, optimize=False, pool=None)
.. py:function:: write_code_to_tempfile(code, file_path=None)
.. py:function:: generate_vectorized_code(inputs, expressions, simplify=True, optimize=False, pool=None)
.. py:function:: generate_a_code_line_simplfied(input, optimize=False)
.. py:function:: generate_a_code_line(input, optimize=False)