Skip to content

diffcp

0.1.1

Differentiating Through Cone Programs

0packages depend
1.2Kdownloads / year
86.2%test coverage
13/13checks pass

Overview

About
Maintained by Balasubramanian NarasimhanFirst published 2026-05-192 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: 3.9 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 1.46
86.2%
Coverage · measured lines
100%
Documentation · exports
5
Dependencies · direct
Check history
  • 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.2K
CRAN downloads in the past year
Rank #9,528 · ~3/day · ~97/mo
Daily download trend is not available in this view yet.
37230 days
1.2K90 days
1.2K1 year
Compare downloads with other packages →
Also on48 r2u

Repository

Repository
1Stars
0Forks
0Open issues
0Open PRs
0Releases
31Commits
1Contributors
31 commits · Last activity 2026-05-26

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-07-19.

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

Code Composition
R 2,600 (54%)C++ 1,228 (26%)Vignettes 480 (10%)Rd 316 (7%)C 167 (3%)
Code characteristics
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

Loading call graph…

Lowest coverage

104 functions
FunctionCycloCoverage
upstream_info exp30%
.dproj_nonneg10%
.dproj_soc_one40%
.dproj_zero20%
.dprojection120%
.proj_soc20%

People & History

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

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

  • 0.1.1Latest
    2026-05-27 · current release · 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
2 / 1 yrs
License
Apache License (>= 2)
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →