Skip to content

diffcp

0.1.2Package record

Differentiating Through Cone Programs

0packages depend
2.1Kdownloads / year
86.3%test coverage
13/13flavors OK

Overview

About

A port of the 'python' 'diffcp' package. Computes the derivative of the optimal solution map of a convex cone program, treating the program as an implicit function of its data (constraint matrix, offset, objective coefficients, and optionally a quadratic), mirroring Agrawal et al. (2019) doi:10.48550/arXiv.1904.09043.

Changes in 0.1.2
  • solve_and_derivative() now reports dA on the sparsity pattern of A **including any explicit zeros**, matching Python diffcp. Covered by tests/testthat/test-explicit-zeros.R, including a finite-difference check that the recovered derivative is correct and not merely present.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.2 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK7 OK2026-05-20
Advisories

none known

Documentation

In release 0.1.2
READMEYes · 1,294 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.1.2Citation fileYes · cites a publicationWebsiteYes · pkgdown
Help pages
9 (2 internal)includes a package overview page
Examples that run
100%1 run in a plain check
Exported functions with examples
13%
Documented parameters
100%
Return-value docs
88%
Help pages citing references
0%

Downloads

2.1K
CRAN downloads in the past year
Rank #12,161 · ~6/day · ~178/mo
Daily download trend is not available in this view yet.
26130 days
91390 days
2.1K1 year
Compare downloads with other packages →
Also on112 r2u

Repository

1Stars
0Forks
0Open issues
0Open PRs
1Releases
33Commits
1Commit identities
33 commits · Last activity 2026-08-22 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2026-07-07 · 02026-07-10 · 1
PracticesBeta

5 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/bnaras/diffcp on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-08-23 · The repository has a site deploy workflow

pkgdown site last built 2026-08-23

How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)

Installing diffcp adds 4 packages (4 with compiled code, 9.8 MB of source tarballs). Heaviest: clarabel 5.7 MB, Rcpp 1.8 MB, RcppEigen 1.7 MB.

Depends (0)
none
Imports (5)
cliclarabelMatrixmethodsRcpp
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (6)
Author, Maintainer since 0.1.0 (2026)
Releases (3)

Pick two releases to compare their code metrics.

Package metadata

First published
2026-05-19
Total releases
3 / 1 yrs
License
Apache License (>= 2)
Download size
223 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("diffcp")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for diffcp version 0.1.2 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy