Skip to content

njlivesey/dualpy


DualPy

Forward mode automatic differentiation using dual algebra for numpy arrays (and Pint/Astropy quantities)

SLIM

Provides a near drop-in capability for performing forward mode automatic differentiation for numpy-based numerical software. For more details on dual-algebra based forward mode automatic differentiation see, for example, this Wikipedia article

Features

  • Supports regular numpy arrays as well as arrays with units using Pint and astropy (the latter is less tested).
  • Can store multiple Jacobians for an array with respect to different variables
  • Jacobians can be stored as full, diagonal (starting point), or sparse matrices (the latter using scipy.sparse with occasional use of the (non-scipy) sparse package).
  • Supports most standard operations and functions, but always scope for more to be added

Contents

Quick Start

This guide provides a quick way to get started with our project. Please see our [docs]([INSERT LINK TO DOCS SITE / WIKI HERE]) for a more comprehensive overview.

Requirements

  • [INSERT LIST OF REQUIREMENTS HERE]

Setup Instructions

  1. [INSERT STEP-BY-STEP SETUP INSTRUCTIONS HERE, WITH OPTIONAL SCREENSHOTS]

Run Instructions

  1. [INSERT STEP-BY-STEP RUN INSTRUCTIONS HERE, WITH OPTIONAL SCREENSHOTS]

Usage Examples

  • [INSERT LIST OF COMMON USAGE EXAMPLES HERE, WITH OPTIONAL SCREENSHOTS]

Build Instructions (if applicable)

  1. [INSERT STEP-BY-STEP BUILD INSTRUCTIONS HERE, WITH OPTIONAL SCREENSHOTS]

Test Instructions (if applicable)

  1. [INSERT STEP-BY-STEP TEST INSTRUCTIONS HERE, WITH OPTIONAL SCREENSHOTS]

Changelog

See our CHANGELOG.md for a history of our changes.

See our [releases page]([INSERT LINK TO YOUR RELEASES PAGE]) for our key versioned releases.

Frequently Asked Questions (FAQ)

[INSERT LINK TO FAQ PAGE OR PROVIDE FAQ INLINE HERE]

Contributing

[INSERT LINK TO CONTRIBUTING GUIDE OR FILL INLINE HERE]

[INSERT LINK TO YOUR CODE_OF_CONDUCT.md OR SHARE TEXT HERE]

[INSERT LINK TO YOUR GOVERNANCE.md OR SHARE TEXT HERE]

License

See our: LICENSE

Support

[INSERT CONTACT INFORMATION OR PROFILE LINKS TO MAINTAINERS AMONG COMMITTER LIST]

About

Python/numpy forward mode automatic differentiation using dual algebra

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors