Skip to content

diffcp

0.1.2

Differentiating Through Cone Programs

0packages depend
1.5Kdownloads / year
86.3%test coverage
13/13checks pass

Overview

About
Maintained by Balasubramanian NarasimhanFirst published 2026-05-193 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 4.4 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 1.51
86.3%
Coverage · measured lines
100%
Documentation · exports
5
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-05-20
    7 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,294 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
88%
References docs
0%

Downloads

1.5K
CRAN downloads in the past year
Rank #5,997 · ~4/day · ~122/mo
Daily download trend is not available in this view yet.
28530 days
1.3K90 days
1.5K1 year
Compare downloads with other packages →
Also on70 r2u

Repository

Repository
1Stars
0Forks
0Open issues
0Open PRs
0Releases
33Commits
1Contributors
33 commits · Last activity 2026-08-22 · 0% stars, 30d

Stars over time

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

Repository practices

Upstream repositoryBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/bnaras/diffcp on 2026-08-23.

Continuous integration (1)
GitHub Actions
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (5)
cliclarabelMatrixmethodsRcpp
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (6)
Maintainer (1)
Author, Maintainer
Authors (6)
Author, Maintainer
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 0.1.2Latest
    2026-08-23 · current release · diff ↗
  • 0.1.1
    2026-05-27 · diff ↗
  • 0.1.0
    2026-05-19
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-05-19
Total releases
3 / 1 yrs
License
Apache License (>= 2)
Download size
223 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("diffcp")
Narasimhan, B., Agrawal, A., Barratt, S., Boyd, S., Busseti, E., & Moursi, W. (2026). diffcp: Differentiating Through Cone Programs (Version 0.1.2) [Computer software]. https://doi.org/10.32614/CRAN.package.diffcp

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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-08-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-23, 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