The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

sparsediff: R Interface to the 'SparseDiffEngine' Sparse Differentiation Backend

Bindings for the 'SparseDiffEngine' C library, the sparse Jacobian and Hessian differentiation backend used by 'CVXPY' for its Disciplined Nonlinear Programming (DNLP) extension. Provides low-level routines for building nonlinear expression graphs and evaluating sparse derivatives, intended as a backend for higher-level modeling layers such as 'CVXR'. This is the R analog of the 'sparsediffpy' Python package and wraps the same C library.

Version: 0.4.0
LinkingTo: cpp11
Suggests: cpp11, knitr, rmarkdown
Published: 2026-06-08
DOI: 10.32614/CRAN.package.sparsediff
Author: Balasubramanian Narasimhan [aut, cre], Daniel Cederberg [aut, cph] (Author of the bundled SparseDiffEngine C library), William Zijie Zhang [aut, cph] (Author of the bundled SparseDiffEngine C library)
Maintainer: Balasubramanian Narasimhan <naras at stanford.edu>
BugReports: https://github.com/bnaras/sparsediff/issues
License: Apache License (== 2.0)
Copyright: file inst/COPYRIGHTS
sparsediff copyright details
URL: https://bnaras.github.io/sparsediff/, https://github.com/bnaras/sparsediff
NeedsCompilation: yes
SystemRequirements: GNU make
Materials: README
CRAN checks: sparsediff results

Documentation:

Reference manual: sparsediff.html , sparsediff.pdf
Vignettes: Sparse derivatives with sparsediff (source, R code)

Downloads:

Package source: sparsediff_0.4.0.tar.gz
Windows binaries: r-devel: sparsediff_0.4.0.zip, r-release: sparsediff_0.4.0.zip, r-oldrel: sparsediff_0.4.0.zip
macOS binaries: r-release (arm64): sparsediff_0.4.0.tgz, r-oldrel (arm64): sparsediff_0.4.0.tgz, r-release (x86_64): sparsediff_0.4.0.tgz, r-oldrel (x86_64): sparsediff_0.4.0.tgz

Reverse dependencies:

Reverse enhances: CVXR

Linking:

Please use the canonical form https://CRAN.R-project.org/package=sparsediff to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.