Awesome Open Source
Awesome Open Source

ATTENTION: This branch is no longer used and it belongs to pre-1.0 versions of DiffSharp. Use the dev branch for the latest version. The text below and the code in this branch are kept as a historical record.

DiffSharp: Differentiable Functional Programming

DiffSharp is a functional automatic differentiation (AD) library implemented in the F# language. It supports C# and the other CLI languages. The library is being developed mainly for research applications in machine learning, by Atılım Güneş Baydin and Barak A. Pearlmutter, within the Brain and Computation Lab, National University of Ireland Maynooth.

Please visit the project website for detailed documentation and examples.

You can come and join the Gitter chat room, if you want to chat with us:

Join the chat at

Project statistics

Issue Stats Issue Stats

Current build status

Build status (Windows)

Build Status (Unix/Mono)


Copyright (c) 2016- University of Oxford (Atilim Gunes Baydin)
Copyright (c) 2017- Microsoft Research, Cambridge, UK (Don Syme)
Copyright (c) 2014- National University of Ireland Maynooth (Barak A. Pearlmutter)
Copyright (c) 2014-2016 National University of Ireland Maynooth (Atilim Gunes Baydin)

DiffSharp is licensed under the BSD 2-clause "Simplified" license, which means that redistribution and use in source and binary forms, with or without modification, are permitted provided that the authors listed above are properly acknowledged by following the conditions in the attached LICENSE file.

Other licenses

DiffSharp uses:

  • OpenBLAS by Zhang Xianyi, Wang Qian, Werner Saar (BSD license) for BLAS/LAPACK operations
  • F# Quotations Evaluator by Paul Westcott and others (Unlicense/public domain) for compiling code quotations

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Machine Learning (38,754
Deep Learning (37,790
Programming (18,306
Neural Network (15,803
Functional Programming (11,036
Gpu (9,438
Fsharp (4,162
Tensor (2,375
Autodiff (59