diffcp
0.1.1Differentiating Through Cone Programs
Overview
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
- OK2026-05-207 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 88%
- References docs
- 0%
Downloads
Repository
Stars over time
Repository practices
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/bnaras/diffcp on 2026-07-19.
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 1.0 median / 49 max
- Test cases
- 60 / 1.46 per code line
- System requirements
- 1 external
Test coverage
Line coverage
86%
Expression
88.7%
Tests / Examples
86.2% / 0% ex
Functions
104 7 exported
Complexity
3.9 avg / 49 max
Call network
104 nodes / 102 edges
Call graph
Open call graph →Lowest coverage
104 functions| Function | Cyclo | Coverage |
|---|---|---|
| upstream_info exp | 3 | 0% |
| .dproj_nonneg | 1 | 0% |
| .dproj_soc_one | 4 | 0% |
| .dproj_zero | 2 | 0% |
| .dprojection | 12 | 0% |
| .proj_soc | 2 | 0% |
People & History
2 releases. Pick two to compare their code metrics. R releases are shown for context.
- 0.1.1Latest
- 0.1.02026-05-19
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-05-19
- Total releases
- 2 / 1 yrs
- License
- Apache License (>= 2)
- Download size
- not tracked yet
- Installed size
- not tracked yet
- With dependencies
- not tracked yet