Skip to main content

CppAD bindings to python

Project description

PyCppAD — Python bindings for CppAD Automatic Differentiation library

License Conda Downloads Conda Version PyPI version

PyCppAD is an open source framework which provides bindings for the CppAD Automatic Differentiation(CppAD) C++ library in Python. PyCppAD also includes support for the CppADCodeGen (CppADCodeGen), C++ library, which exploits CppAD functionality to perform code generation.

Installing PyCppAD

Installation via

As simple as that:

   conda install pycppad -c conda-forge

Installation via PyPI

As simple as that:

   pip install pycppad

Installation by source

Dependencies

PyCppAD dependes on the following dependencies:

Compiling PyCppAD

Once the dependencies have been installed, follow the following commands to compile PyCppAD:

cd ${path_to_your_development_source}/
git clone --recursive https://github.com/Simple-Robotics/pycppad.git
cd pycppad
mkdir _build-RELEASE
cd _build-RELEASE
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=${path_to_your_installation}
make install

Set up the path_to_your_installation and path_to_your_development_source based on your personal development environment.

Alternatively, in order to compile with CppADCodeGen support, add -DBUILD_WITH_CPPAD_CODEGEN_BINDINGS=ON to the cmake command, and follow the build sequence as before:

cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=${path_to_your_installation} -DBUILD_WITH_CPPAD_CODEGEN_BINDINGS=ON

Acknowledgments

The development of PyCppAD is supported by the Willow team @INRIA.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pycppad-1.2.0-1-cp39-cp39-manylinux_2_24_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.24+ x86-64

pycppad-1.2.0-1-cp38-cp38-manylinux_2_24_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.24+ x86-64

pycppad-1.2.0-1-cp37-cp37m-manylinux_2_24_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.24+ x86-64

pycppad-1.2.0-1-cp36-cp36m-manylinux_2_24_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.24+ x86-64

pycppad-1.2.0-1-cp27-cp27mu-manylinux_2_24_x86_64.whl (1.1 MB view hashes)

Uploaded CPython 2.7mu manylinux: glibc 2.24+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page