{
  "_id": "6a48d821b5e98c40829ffa4c",
  "Package": "diffcp",
  "Type": "Package",
  "Title": "Differentiating Through Cone Programs",
  "Version": "0.1.1",
  "Authors@R": "c(\nperson(\"Balasubramanian\", \"Narasimhan\",\nrole = c(\"aut\", \"cre\"),\nemail = \"naras@stanford.edu\"),\nperson(\"Akshay\", \"Agrawal\", role = \"aut\"),\nperson(\"Shane\", \"Barratt\",  role = \"aut\"),\nperson(\"Stephen\", \"Boyd\",   role = \"aut\"),\nperson(\"Enzo\", \"Busseti\",   role = \"aut\"),\nperson(\"Walaa\", \"Moursi\",   role = \"aut\"))",
  "Description": "A port of the 'python' 'diffcp' package. Computes the\nderivative of the optimal solution map of a convex cone\nprogram, treating the program as an implicit function of its\ndata (constraint matrix, offset, objective coefficients, and\noptionally a quadratic), mirroring Agrawal et al. (2019)\n<doi:10.48550/arXiv.1904.09043>.",
  "URL": "https://bnaras.github.io/diffcp/",
  "BugReports": "https://github.com/bnaras/diffcp/issues",
  "License": "Apache License (>= 2)",
  "Encoding": "UTF-8",
  "VignetteBuilder": "knitr",
  "SystemRequirements": "C++17",
  "Config/testthat/edition": "3",
  "RoxygenNote": "7.3.3",
  "Roxygen": "list(markdown = TRUE)",
  "Config/pak/sysreqs": "make libclang-dev",
  "Repository": "https://bnaras.r-universe.dev",
  "Date/Publication": "2026-05-26 15:49:20 UTC",
  "RemoteUrl": "https://github.com/bnaras/diffcp",
  "RemoteRef": "HEAD",
  "RemoteSha": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-04 09:16:59 UTC",
    "User": "root"
  },
  "Author": "Balasubramanian Narasimhan [aut, cre],\nAkshay Agrawal [aut],\nShane Barratt [aut],\nStephen Boyd [aut],\nEnzo Busseti [aut],\nWalaa Moursi [aut]",
  "Maintainer": "Balasubramanian Narasimhan <naras@stanford.edu>",
  "_user": "bnaras",
  "_type": "src",
  "_file": "diffcp_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/b3851e5783f70cfe80c929b1e0b6616e7efbbd6455971d5d98a2dc164ade4fcd",
  "_filesize": 316825,
  "_sha256": "b3851e5783f70cfe80c929b1e0b6616e7efbbd6455971d5d98a2dc164ade4fcd",
  "_expires": "2026-10-12T09:53:36.000Z",
  "_created": "2026-07-04T09:16:59.000Z",
  "_published": "2026-07-04T09:53:37.883Z",
  "_jobs": [
    {
      "job": 85120688684,
      "time": 185,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8080404507"
    },
    {
      "job": 85120688691,
      "time": 187,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8080404401"
    },
    {
      "job": 85120688679,
      "time": 182,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8080404291"
    },
    {
      "job": 85120688689,
      "time": 198,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8080405631"
    },
    {
      "job": 85120688687,
      "time": 130,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8080630407"
    },
    {
      "job": 85120688678,
      "time": 296,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8080416903"
    },
    {
      "job": 85120688683,
      "time": 105,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8080626143"
    },
    {
      "job": 85120688688,
      "time": 265,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8080413894"
    },
    {
      "job": 85120441443,
      "time": 245,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8080383081"
    },
    {
      "job": 85120688674,
      "time": 184,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8080404013"
    },
    {
      "job": 85120688682,
      "time": 158,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8080401192"
    },
    {
      "job": 85120688676,
      "time": 164,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8080402052"
    },
    {
      "job": 85120688677,
      "time": 150,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8080400359"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701589361",
  "_status": "success",
  "_upstream": "https://github.com/bnaras/diffcp",
  "_commit": {
    "id": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
    "author": "Balasubramanian Narasimhan <b.naras@gmail.com>",
    "committer": "Balasubramanian Narasimhan <b.naras@gmail.com>",
    "message": "Update DESCRIPTION\n",
    "time": 1779810560
  },
  "_maintainer": {
    "name": "Balasubramanian Narasimhan",
    "email": "naras@stanford.edu",
    "login": "bnaras",
    "description": "",
    "uuid": 3030361
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "clarabel",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "pkgdown",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "scs",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "bnaras",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-18",
      "n": 13
    },
    {
      "week": "2026-19",
      "n": 7
    },
    {
      "week": "2026-20",
      "n": 6
    },
    {
      "week": "2026-22",
      "n": 5
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "bnaras",
      "count": 31,
      "uuid": 3030361
    }
  ],
  "_userbio": {
    "uuid": 3030361,
    "type": "user",
    "name": "Balasubramanian Narasimhan",
    "followers": 72
  },
  "_downloads": {
    "count": 660,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/diffcp"
  },
  "_devurl": "https://github.com/bnaras/diffcp",
  "_pkgdown": "https://bnaras.github.io/diffcp/",
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/diffcp.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/bnaras/diffcp",
  "_realowner": "bnaras",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-05-19"
    },
    {
      "version": "0.1.1",
      "date": "2026-05-27"
    }
  ],
  "_exports": [
    "CONES",
    "EQ_DIM",
    "EXP",
    "EXP_DUAL",
    "parse_cone_dict",
    "pi",
    "POS",
    "PSD",
    "SOC",
    "solve_and_derivative",
    "solve_only",
    "unvec_symm",
    "upstream_info",
    "vec_symm",
    "ZERO"
  ],
  "_help": [
    {
      "page": "parse_cone_dict",
      "title": "Parse an SCS-style cone dictionary into an ordered list",
      "topics": [
        "parse_cone_dict"
      ]
    },
    {
      "page": "pi",
      "title": "Projection onto a Cartesian product of cones",
      "topics": [
        "pi"
      ]
    },
    {
      "page": "solve_and_derivative",
      "title": "Solve a cone program and return forward / adjoint derivative operators",
      "topics": [
        "solve_and_derivative"
      ]
    },
    {
      "page": "solve_only",
      "title": "Solve a cone program (forward only)",
      "topics": [
        "solve_only"
      ]
    },
    {
      "page": "unvec_symm",
      "title": "Inverse of 'vec_symm'",
      "topics": [
        "unvec_symm"
      ]
    },
    {
      "page": "upstream_info",
      "title": "Upstream Python diffcp pin",
      "topics": [
        "upstream_info"
      ]
    },
    {
      "page": "vec_symm",
      "title": "Symmetric vectorization (SCS convention)",
      "topics": [
        "vec_symm"
      ]
    }
  ],
  "_pkglogo": "https://github.com/bnaras/diffcp/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/bnaras/diffcp/raw/HEAD/README.md",
  "_rundeps": [
    "clarabel",
    "cli",
    "lattice",
    "Matrix",
    "Rcpp",
    "RcppEigen"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "diffcp.Rmd",
      "filename": "diffcp.html",
      "title": "Differentiating Through a Cone Program with diffcp",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "The mathematical setup",
        "What the package computes",
        "Example 1: a linear program",
        "Example 2: a second-order-cone program",
        "Example 3: a small semidefinite program",
        "A practical sensitivity-analysis example",
        "Forward versus adjoint: when to use each",
        "Choosing dense versus lsqr",
        "Conventions",
        "Connection to CVXR",
        "Citation"
      ],
      "created": "2026-05-03 05:43:06",
      "modified": "2026-05-26 02:12:03",
      "commits": 6
    }
  ],
  "_score": 4.301029995663981,
  "_indexed": true,
  "_nocasepkg": "diffcp",
  "_universes": [
    "bnaras"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-04T09:19:59.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "https://r2.ropensci.org/5f61d1900bd64b278e4d1fa7daf12349f4a68ed6c1f7462b468405772ded85b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701589361"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-04T09:19:49.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "https://r2.ropensci.org/31a49cb5d1f026a9ae84642dfa83879d86d37bf561bf4b650a34989b469b36b5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701589361"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-04T09:19:57.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "https://r2.ropensci.org/365c99df051fdd5cfefb049f38a8c1f371bd504347660b188599bee87bc47597",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701589361"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-04T09:19:57.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "https://r2.ropensci.org/ce9b31752773cb3ff9fb37a1aa161d3d5f720d69f6de925ea865c0122d896b57",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701589361"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-04T09:52:24.000Z",
      "arch": "aarch64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "https://r2.ropensci.org/c1689049427c116a47fa99dc540c7e1baece23d846bc2205ef8b2a36ecb20a54",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701589361"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-04T09:20:43.000Z",
      "arch": "x86_64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "https://r2.ropensci.org/6c279c62317539e77531b115f7419c983a7ec1287e062c67054b003aedbe2c50",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701589361"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-04T09:51:58.000Z",
      "arch": "aarch64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "https://r2.ropensci.org/5e57e4a161fa0bdd179ce607aa2c1c781af2d427273f59d5142f381500e2a527",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701589361"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-04T09:20:34.000Z",
      "arch": "x86_64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "https://r2.ropensci.org/c38686616e660a58962fdaf039c984b4c87427d5890de711e15b120a9af90588",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701589361"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-07-04T09:20:18.000Z",
      "arch": "emscripten",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "https://r2.ropensci.org/9d75cccb0c728fd647b93ce81572d8292ef184fe778f2d462ad382d8189d8998",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701589361"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-04T09:18:39.000Z",
      "arch": "x86_64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "https://r2.ropensci.org/2fe3f8c99cc5e57c4c091a512e945b9c326d92b62c60503d220f85bf8a39e73f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701589361"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-04T09:18:49.000Z",
      "arch": "x86_64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "https://r2.ropensci.org/16c0075e4e2e215fd536797bb26983e5d436f7dc17b262fe269a0217d784427f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701589361"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-04T09:18:35.000Z",
      "arch": "x86_64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "https://r2.ropensci.org/046e8972ddc35ac0bc6aae7af96d4f37eb4bc5e1c788ccd90c7bafa6022a733e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701589361"
    }
  ]
}