{
  "_id": "6a21d415cd65a98ecbd3fd2c",
  "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-06-04 19:31:25 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>",
  "MD5sum": "ecf09be6597fae131b5f11f150060f22",
  "_user": "bnaras",
  "_type": "src",
  "_file": "diffcp_0.1.1.tar.gz",
  "_fileid": "3f22b1a65763d2a277fd006459e0a6574761eb48f8adcf46d2393f75db64030c",
  "_filesize": 314270,
  "_sha256": "3f22b1a65763d2a277fd006459e0a6574761eb48f8adcf46d2393f75db64030c",
  "_created": "2026-06-04T19:31:25.000Z",
  "_published": "2026-06-04T19:37:57.545Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79598714155,
      "time": 188,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7421176248"
    },
    {
      "job": 79598714338,
      "time": 189,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7421175388"
    },
    {
      "job": 79598714135,
      "time": 179,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7421173135"
    },
    {
      "job": 79598714115,
      "time": 180,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7421172288"
    },
    {
      "job": 79598714168,
      "time": 161,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7421164876"
    },
    {
      "job": 79598714305,
      "time": 277,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7421205750"
    },
    {
      "job": 79598714157,
      "time": 114,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7421146707"
    },
    {
      "job": 79598714139,
      "time": 332,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7421224696"
    },
    {
      "job": 79597962170,
      "time": 259,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7421106581"
    },
    {
      "job": 79598714108,
      "time": 169,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7421167702"
    },
    {
      "job": 79598714160,
      "time": 161,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7421164882"
    },
    {
      "job": 79598714149,
      "time": 158,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7421163313"
    },
    {
      "job": 79598714173,
      "time": 210,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7421183195"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bnaras/actions/runs/26974494815",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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": 1,
  "_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"
  },
  "_downloads": {
    "count": 361,
    "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.0",
  "_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": "14.2.0-4ubuntu2~24.04.1",
      "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.778151250383644,
  "_indexed": true,
  "_nocasepkg": "diffcp",
  "_universes": [
    "bnaras"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-04T19:34:31.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "cf8025690ff4eb7bbf93c53448a6a10dfeca4713bb835c6aa4873aa981c660b0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/26974494815"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-04T19:34:17.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "943719257caf903a1dfdc5fe993a2a0056f62966380cddcfe774cdd4e4340311",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/26974494815"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-04T19:34:22.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "284fa2d0f126fd891ab65049f67dede4d01d75061a9d659175452ec443b7f689",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/26974494815"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-04T19:34:13.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "a65e275f4f1d2c5b233d42e16ae8f54a16134affc71b50981278e145005bb822",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/26974494815"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-04T19:33:54.000Z",
      "arch": "aarch64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "075d384642ad220dc1c7dfb91b439a72bc5309eb475a65134fbf3de27e7c312a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/26974494815"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-04T19:34:57.000Z",
      "arch": "x86_64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "c8cfb1bc75177a7a95266ba97d546f6995cb54bfe3221ac1bc5c5923f3fc0eb0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/26974494815"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-04T19:33:22.000Z",
      "arch": "aarch64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "dc7467bfcbb2a4dd0b1b7d28e1abf0b4be65551c03ee0ab68e30e564c9c36507",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/26974494815"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-04T19:35:44.000Z",
      "arch": "x86_64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "00b7d61ac6eb5eac9decc92e1b2bc8e82d604c80ff4b4d029435d28bc7a79b7d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/26974494815"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-06-04T19:34:32.000Z",
      "arch": "emscripten",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "5dcc9aa9282ea7225863b2df245d660298dc5221da232dd40ed4ff1ca081c104",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/26974494815"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-04T19:33:07.000Z",
      "arch": "x86_64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "d6ed99ab6c08b92741b9846dffe7558c0f007a52d98443b527471520b6c60033",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/26974494815"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-04T19:33:08.000Z",
      "arch": "x86_64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "b888004157b7859113a91542f6eaea02207ac302f758989e9c5b9c74a8b0323c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/26974494815"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-04T19:33:29.000Z",
      "arch": "x86_64",
      "commit": "109c12f15298f9cbee8407ddc7d211581e8a1a9c",
      "fileid": "852cbc6a2b0000985f23178445124f702e6f266aac3f0c63e88551dfc780b4a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/26974494815"
    }
  ]
}