{
  "_id": "6ad8733969e274306bae938c",
  "Package": "diffcp",
  "Type": "Package",
  "Title": "Differentiating Through Cone Programs",
  "Version": "0.1.2",
  "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)",
  "Repository": "https://bnaras.r-universe.dev",
  "Date/Publication": "2026-08-22 03:42:44 UTC",
  "RemoteUrl": "https://github.com/bnaras/diffcp",
  "RemoteRef": "HEAD",
  "RemoteSha": "d49481059992a87dc217df2bfd4f6704c6f701a0",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-21 08:02:08 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.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/1dc407367949f6462d92a114ac9dbb7015ca0634b220594338ea37f663d772f3",
  "_filesize": 316299,
  "_sha256": "1dc407367949f6462d92a114ac9dbb7015ca0634b220594338ea37f663d772f3",
  "_expires": "2027-01-29T08:09:27.000Z",
  "_created": "2026-10-21T08:02:08.000Z",
  "_published": "2026-10-21T08:09:29.599Z",
  "_buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 119109429265,
      "time": 134,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12329747922"
    },
    {
      "job": 119109429342,
      "time": 163,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12329713210"
    },
    {
      "job": 119109429419,
      "time": 247,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12330246659"
    },
    {
      "job": 119109429309,
      "time": 292,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12330695457"
    },
    {
      "job": 119109429220,
      "time": 124,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12329652133"
    },
    {
      "job": 119109429354,
      "time": 357,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12330616196"
    },
    {
      "job": 119109429300,
      "time": 193,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12329698412"
    },
    {
      "job": 119109429447,
      "time": 353,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12329718891"
    },
    {
      "job": 119107010094,
      "time": 357,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12329627879"
    },
    {
      "job": 119109429515,
      "time": 288,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12329623863"
    },
    {
      "job": 119109429664,
      "time": 264,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12330476290"
    },
    {
      "job": 119109429537,
      "time": 195,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12330760207"
    },
    {
      "job": 119109429536,
      "time": 176,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12330585665"
    },
    {
      "job": 119109429484,
      "time": 246,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12330046928"
    },
    {
      "job": 119109429553,
      "time": 376,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12330745890"
    }
  ],
  "_upstream": "https://github.com/bnaras/diffcp",
  "_commit": {
    "id": "d49481059992a87dc217df2bfd4f6704c6f701a0",
    "author": "Balasubramanian Narasimhan <b.naras@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #1 from bnaras/keep-explicit-zeros-in-dA\n\nPreserve explicit zeros in dA",
    "time": 1787370164
  },
  "_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
    },
    {
      "week": "2026-34",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.1.2",
      "date": "2026-08-22"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "bnaras",
      "count": 33,
      "uuid": 3030361
    }
  ],
  "_userbio": {
    "uuid": 3030361,
    "type": "user",
    "name": "Balasubramanian Narasimhan",
    "followers": 73
  },
  "_downloads": {
    "count": 309,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/diffcp"
  },
  "_devurl": "https://github.com/bnaras/diffcp",
  "_pkgdown": "https://bnaras.github.io/diffcp/",
  "_searchresults": 3,
  "_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/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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"
    },
    {
      "version": "0.1.2",
      "date": "2026-08-22"
    }
  ],
  "_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.3979400086720375,
  "_indexed": true,
  "_nocasepkg": "diffcp",
  "_universes": [
    "bnaras"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-21T08:04:17.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "d49481059992a87dc217df2bfd4f6704c6f701a0",
      "fileid": "https://r2.ropensci.org/d51c433c6e9fcaa705d36f4b685bfed55349258f515a883042e5a17af7fe0450",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-21T08:04:31.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "d49481059992a87dc217df2bfd4f6704c6f701a0",
      "fileid": "https://r2.ropensci.org/010e0142f283822f2e8d790149286347966bcd2c5d8b52289f2e9cd4e588661f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-21T08:06:14.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "d49481059992a87dc217df2bfd4f6704c6f701a0",
      "fileid": "https://r2.ropensci.org/4ff8621e55f76c8b09c6ae091982b51edaf00c119911bfa2f5d29b1935a6cea4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-10-21T08:06:47.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "d49481059992a87dc217df2bfd4f6704c6f701a0",
      "fileid": "https://r2.ropensci.org/01e6143160d0b4b82119dbda1c4c1f8dc784f93092284f177fa8abcc6d5fa18a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-21T08:04:14.000Z",
      "arch": "aarch64",
      "commit": "d49481059992a87dc217df2bfd4f6704c6f701a0",
      "fileid": "https://r2.ropensci.org/c4af11ba96c7a046e6726e3edcf9e23d77851ddc8ab307ce1329904f1d38a2a4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-21T08:06:23.000Z",
      "arch": "x86_64",
      "commit": "d49481059992a87dc217df2bfd4f6704c6f701a0",
      "fileid": "https://r2.ropensci.org/8abae0f2ef6fa9c32bdf8ff5c3fcf85e48f6fff834588196305fca336f304dc9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-21T08:04:36.000Z",
      "arch": "aarch64",
      "commit": "d49481059992a87dc217df2bfd4f6704c6f701a0",
      "fileid": "https://r2.ropensci.org/dd588ff1b1def17e609cf086ade63dc3b5736019a0ff5bcbe681aad41ac108c8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.2",
      "date": "2026-10-21T08:06:03.000Z",
      "arch": "x86_64",
      "commit": "d49481059992a87dc217df2bfd4f6704c6f701a0",
      "fileid": "https://r2.ropensci.org/df88cca9036f3c4bce563ca3bc9b4d13015a492fb3ead3d3339466877bb553b5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-10-21T08:07:16.000Z",
      "arch": "emscripten",
      "commit": "d49481059992a87dc217df2bfd4f6704c6f701a0",
      "fileid": "https://r2.ropensci.org/17e64aca2296fed42be2eb99e3217a0b441a30cb7f9deb7a7021967e9ecc601e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-21T08:06:00.000Z",
      "arch": "aarch64",
      "commit": "d49481059992a87dc217df2bfd4f6704c6f701a0",
      "fileid": "https://r2.ropensci.org/ab01c0fefb70854e1623ee11fcfc62d44fb37b45555a9b5c3fab27d482a7d05b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-21T08:03:49.000Z",
      "arch": "x86_64",
      "commit": "d49481059992a87dc217df2bfd4f6704c6f701a0",
      "fileid": "https://r2.ropensci.org/7f1567b5895d8eded23b16d22b5c749e5db7bf83bb0e51dd20e1ed03e7cd620a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-21T08:04:19.000Z",
      "arch": "x86_64",
      "commit": "d49481059992a87dc217df2bfd4f6704c6f701a0",
      "fileid": "https://r2.ropensci.org/ed70cc40c98a6301a1427988be358cc50aac19570321e67b609f56e5432d943e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-21T08:05:49.000Z",
      "arch": "aarch64",
      "commit": "d49481059992a87dc217df2bfd4f6704c6f701a0",
      "fileid": "https://r2.ropensci.org/6c3bdb13f96ab3e5902aafa1065d092fbc06d4542454eecfb6d15908b46d9f26",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.2",
      "date": "2026-10-21T08:07:35.000Z",
      "arch": "x86_64",
      "commit": "d49481059992a87dc217df2bfd4f6704c6f701a0",
      "fileid": "https://r2.ropensci.org/8d8a7dfb5e715500b54cd3ca114cba5020bcc6582369aab5c4e95539a00e5f78",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/39565567599"
    }
  ]
}