{
  "_id": "6a48d7efb5e98c40829ffa0f",
  "Package": "sparsediff",
  "Type": "Package",
  "Title": "R Interface to the 'SparseDiffEngine' Sparse Differentiation\nBackend",
  "Version": "0.4.0",
  "Authors@R": "c(\nperson(\"Balasubramanian\", \"Narasimhan\", role = c(\"aut\", \"cre\"),\nemail = \"naras@stanford.edu\"),\nperson(\"Daniel\", \"Cederberg\", role = c(\"aut\", \"cph\"),\ncomment = \"Author of the bundled SparseDiffEngine C library\"),\nperson(\"William Zijie\", \"Zhang\", role = c(\"aut\", \"cph\"),\ncomment = \"Author of the bundled SparseDiffEngine C library\"))",
  "Description": "Bindings for the 'SparseDiffEngine' C library, the sparse\nJacobian and Hessian differentiation backend used by 'CVXPY'\nfor its Disciplined Nonlinear Programming (DNLP) extension.\nProvides low-level routines for building nonlinear expression\ngraphs and evaluating sparse derivatives, intended as a backend\nfor higher-level modeling layers such as 'CVXR'. This is the R\nanalog of the 'sparsediffpy' Python package and wraps the same\nC library.",
  "License": "Apache License (== 2.0)",
  "Copyright": "file inst/COPYRIGHTS",
  "URL": "https://bnaras.github.io/sparsediff/,\nhttps://github.com/bnaras/sparsediff",
  "BugReports": "https://github.com/bnaras/sparsediff/issues",
  "Encoding": "UTF-8",
  "SystemRequirements": "GNU make",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "yes",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "make",
  "Repository": "https://bnaras.r-universe.dev",
  "Date/Publication": "2026-06-03 04:40:49 UTC",
  "RemoteUrl": "https://github.com/bnaras/sparsediff",
  "RemoteRef": "HEAD",
  "RemoteSha": "a2b5cf95d239abd4f311d868307f1d5ea2b681cc",
  "Packaged": {
    "Date": "2026-07-04 09:15:43 UTC",
    "User": "root"
  },
  "Author": "Balasubramanian Narasimhan [aut, cre],\nDaniel Cederberg [aut, cph] (Author of the bundled SparseDiffEngine C\nlibrary),\nWilliam Zijie Zhang [aut, cph] (Author of the bundled SparseDiffEngine\nC library)",
  "Maintainer": "Balasubramanian Narasimhan <naras@stanford.edu>",
  "_user": "bnaras",
  "_type": "src",
  "_file": "sparsediff_0.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/c80bc72581b9de1d2a74d0453b05c59237db8db65260b0dffe945bb0879a5c08",
  "_filesize": 314954,
  "_sha256": "c80bc72581b9de1d2a74d0453b05c59237db8db65260b0dffe945bb0879a5c08",
  "_expires": "2026-10-12T09:52:46.000Z",
  "_created": "2026-07-04T09:15:43.000Z",
  "_published": "2026-07-04T09:52:47.560Z",
  "_jobs": [
    {
      "job": 85120595358,
      "time": 139,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8080389258"
    },
    {
      "job": 85120595381,
      "time": 122,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8080387121"
    },
    {
      "job": 85120595359,
      "time": 128,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8080388156"
    },
    {
      "job": 85120595389,
      "time": 124,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8080387188"
    },
    {
      "job": 85120595371,
      "time": 97,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8080625034"
    },
    {
      "job": 85120595370,
      "time": 316,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8080409727"
    },
    {
      "job": 85120595368,
      "time": 79,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8080610011"
    },
    {
      "job": 85120595387,
      "time": 315,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8080409162"
    },
    {
      "job": 85120422639,
      "time": 172,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8080372540"
    },
    {
      "job": 85120595373,
      "time": 120,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8080386826"
    },
    {
      "job": 85120595356,
      "time": 126,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8080387400"
    },
    {
      "job": 85120595374,
      "time": 129,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8080387847"
    },
    {
      "job": 85120595363,
      "time": 120,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8080386717"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701581913",
  "_status": "success",
  "_upstream": "https://github.com/bnaras/sparsediff",
  "_commit": {
    "id": "a2b5cf95d239abd4f311d868307f1d5ea2b681cc",
    "author": "Balasubramanian Narasimhan <b.naras@gmail.com>",
    "committer": "Balasubramanian Narasimhan <b.naras@gmail.com>",
    "message": "Prepare 0.4.0 for CRAN: quote software name, document bundled engine\n\n- Version 0.4.0 (matching the bundled SparseDiffEngine).\n- Quote 'SparseDiffEngine' in Title per the CRAN \"software names in\n  single quotes\" policy (the Description already quoted it).\n- Add inst/COPYRIGHTS documenting the bundled src/sparsediffengine/\n  (Apache-2.0, Copyright 2026 Daniel Cederberg and William Zhang) and\n  reference it via the DESCRIPTION Copyright field.\n- Ignore Rplots.pdf in .Rbuildignore (and removed the stray file) so it\n  cannot ship in the source tarball.\n\nR CMD check --as-cran: Status 1 NOTE (New submission only).\n",
    "time": 1780461649
  },
  "_maintainer": {
    "name": "Balasubramanian Narasimhan",
    "email": "naras@stanford.edu",
    "login": "bnaras",
    "description": "",
    "uuid": 3030361
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "cpp11",
      "role": "LinkingTo"
    },
    {
      "package": "cpp11",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "bnaras",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-21",
      "n": 8
    },
    {
      "week": "2026-23",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "bnaras",
      "count": 12,
      "uuid": 3030361
    }
  ],
  "_userbio": {
    "uuid": 3030361,
    "type": "user",
    "name": "Balasubramanian Narasimhan",
    "followers": 72
  },
  "_downloads": {
    "count": 431,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sparsediff"
  },
  "_devurl": "https://github.com/bnaras/sparsediff",
  "_pkgdown": "https://bnaras.github.io/sparsediff/",
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/sparsediff.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/bnaras/sparsediff",
  "_realowner": "bnaras",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.4.0",
      "date": "2026-06-08"
    }
  ],
  "_exports": [
    "engine_version",
    "sd_add",
    "sd_asinh",
    "sd_atanh",
    "sd_broadcast",
    "sd_constraint_forward",
    "sd_convolve",
    "sd_cos",
    "sd_diag_mat",
    "sd_diag_vec",
    "sd_elementwise_mult",
    "sd_entr",
    "sd_exp",
    "sd_gradient",
    "sd_hessian_sparsity",
    "sd_hessian_values",
    "sd_hstack",
    "sd_index",
    "sd_init_derivatives",
    "sd_init_hessian_coo",
    "sd_init_jacobian",
    "sd_init_jacobian_coo",
    "sd_jacobian_sparsity",
    "sd_jacobian_values",
    "sd_left_matmul",
    "sd_left_matmul_dense",
    "sd_log",
    "sd_logistic",
    "sd_matmul",
    "sd_neg",
    "sd_normal_cdf",
    "sd_objective_forward",
    "sd_parameter",
    "sd_power",
    "sd_problem",
    "sd_prod",
    "sd_prod_axis_one",
    "sd_prod_axis_zero",
    "sd_promote",
    "sd_quad_form",
    "sd_quad_over_lin",
    "sd_register_params",
    "sd_rel_entr",
    "sd_rel_entr_first_scalar",
    "sd_rel_entr_second_scalar",
    "sd_reshape",
    "sd_right_matmul",
    "sd_right_matmul_dense",
    "sd_scalar_mult",
    "sd_sin",
    "sd_sinh",
    "sd_sum",
    "sd_tan",
    "sd_tanh",
    "sd_trace",
    "sd_transpose",
    "sd_update_params",
    "sd_upper_tri",
    "sd_variable",
    "sd_vector_mult",
    "sd_vstack",
    "sd_xexp"
  ],
  "_help": [
    {
      "page": "engine_version",
      "title": "Bundled SparseDiffEngine version",
      "topics": [
        "engine_version"
      ]
    },
    {
      "page": "sparsediff-affine",
      "title": "Affine and shape atoms",
      "topics": [
        "sd_add",
        "sd_broadcast",
        "sd_diag_mat",
        "sd_diag_vec",
        "sd_hstack",
        "sd_index",
        "sd_promote",
        "sd_reshape",
        "sd_sum",
        "sd_trace",
        "sd_transpose",
        "sd_upper_tri",
        "sd_vstack",
        "sparsediff-affine"
      ]
    },
    {
      "page": "sparsediff-bivariate",
      "title": "Bivariate atoms",
      "topics": [
        "sd_elementwise_mult",
        "sd_matmul",
        "sd_quad_over_lin",
        "sd_rel_entr",
        "sd_rel_entr_first_scalar",
        "sd_rel_entr_second_scalar",
        "sparsediff-bivariate"
      ]
    },
    {
      "page": "sparsediff-elementwise",
      "title": "Elementwise atoms",
      "topics": [
        "sd_asinh",
        "sd_atanh",
        "sd_cos",
        "sd_entr",
        "sd_exp",
        "sd_log",
        "sd_logistic",
        "sd_neg",
        "sd_normal_cdf",
        "sd_power",
        "sd_sin",
        "sd_sinh",
        "sd_tan",
        "sd_tanh",
        "sd_xexp",
        "sparsediff-elementwise"
      ]
    },
    {
      "page": "sparsediff-leaves",
      "title": "Leaf expressions: variables and parameters",
      "topics": [
        "sd_parameter",
        "sd_variable",
        "sparsediff-leaves"
      ]
    },
    {
      "page": "sparsediff-matrix",
      "title": "Parameter- and constant-matrix atoms",
      "topics": [
        "sd_convolve",
        "sd_left_matmul",
        "sd_left_matmul_dense",
        "sd_quad_form",
        "sd_right_matmul",
        "sd_right_matmul_dense",
        "sd_scalar_mult",
        "sd_vector_mult",
        "sparsediff-matrix"
      ]
    },
    {
      "page": "sparsediff-oracle",
      "title": "Sparse derivative oracle",
      "topics": [
        "sd_constraint_forward",
        "sd_gradient",
        "sd_hessian_sparsity",
        "sd_hessian_values",
        "sd_init_derivatives",
        "sd_init_hessian_coo",
        "sd_init_jacobian",
        "sd_init_jacobian_coo",
        "sd_jacobian_sparsity",
        "sd_jacobian_values",
        "sd_objective_forward",
        "sparsediff-oracle"
      ]
    },
    {
      "page": "sparsediff-problem",
      "title": "Assemble a differentiable problem",
      "topics": [
        "sd_problem",
        "sd_register_params",
        "sd_update_params",
        "sparsediff-problem"
      ]
    },
    {
      "page": "sparsediff-reduction",
      "title": "Product-reduction atoms",
      "topics": [
        "sd_prod",
        "sd_prod_axis_one",
        "sd_prod_axis_zero",
        "sparsediff-reduction"
      ]
    }
  ],
  "_pkglogo": "https://github.com/bnaras/sparsediff/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/bnaras/sparsediff/raw/HEAD/README.md",
  "_rundeps": [
    "cpp11"
  ],
  "_sysdeps": [
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "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": "sparsediff.Rmd",
      "filename": "sparsediff.html",
      "title": "Sparse derivatives with sparsediff",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What sparsediff is",
        "Building an expression graph",
        "Assembling a problem and its derivative oracle",
        "Evaluating value and derivatives",
        "Parameters and fast re-evaluation",
        "Where to go next"
      ],
      "created": "2026-05-22 18:05:30",
      "modified": "2026-05-22 18:05:30",
      "commits": 1
    }
  ],
  "_score": 4,
  "_indexed": true,
  "_nocasepkg": "sparsediff",
  "_universes": [
    "bnaras"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-07-04T09:18:13.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "a2b5cf95d239abd4f311d868307f1d5ea2b681cc",
      "fileid": "https://r2.ropensci.org/e57e8226eefc513cbe343dbd4d78ed516203bbc8026c1ca32345741a9ee1c877",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701581913"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-07-04T09:17:51.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "a2b5cf95d239abd4f311d868307f1d5ea2b681cc",
      "fileid": "https://r2.ropensci.org/77b750425ed5c89d8570aae09bebd71241f856edd56758d7ee09c637f6478921",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701581913"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-07-04T09:18:03.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "a2b5cf95d239abd4f311d868307f1d5ea2b681cc",
      "fileid": "https://r2.ropensci.org/60e0a2fb77b4cff9d9ce7ef7209f24f70d01a1b375f657b43fc1140159321f4a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701581913"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-07-04T09:17:53.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "a2b5cf95d239abd4f311d868307f1d5ea2b681cc",
      "fileid": "https://r2.ropensci.org/55f731ad16b4718eeeb337b810a816e4071fa715020e314d9a55be60bf630027",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701581913"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-07-04T09:52:11.000Z",
      "arch": "aarch64",
      "commit": "a2b5cf95d239abd4f311d868307f1d5ea2b681cc",
      "fileid": "https://r2.ropensci.org/182f649e92260bd4ea30f030025b96d4a1ceaaf8af8c42a34433d1b14920fb9b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701581913"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-07-04T09:19:57.000Z",
      "arch": "x86_64",
      "commit": "a2b5cf95d239abd4f311d868307f1d5ea2b681cc",
      "fileid": "https://r2.ropensci.org/358dd6399ca5a4411836fef4e276976483ed968d268dc4fd610fccb122b33bd3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701581913"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-07-04T09:50:11.000Z",
      "arch": "aarch64",
      "commit": "a2b5cf95d239abd4f311d868307f1d5ea2b681cc",
      "fileid": "https://r2.ropensci.org/b168d3591b5fbfbf53c299037562a22405c88a87c934ca4ad080de58879f1281",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701581913"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-07-04T09:20:24.000Z",
      "arch": "x86_64",
      "commit": "a2b5cf95d239abd4f311d868307f1d5ea2b681cc",
      "fileid": "https://r2.ropensci.org/14a615f4cdf2105a0683ec4ad7532b8bf3b424f02f393da0f01ef47927aed043",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701581913"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-07-04T09:17:53.000Z",
      "arch": "emscripten",
      "commit": "a2b5cf95d239abd4f311d868307f1d5ea2b681cc",
      "fileid": "https://r2.ropensci.org/64f7edf19cca3e92dc6ac3b594dee1cf5d4e4b7a36edcd7e8c55a946d11bf230",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701581913"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-07-04T09:17:10.000Z",
      "arch": "x86_64",
      "commit": "a2b5cf95d239abd4f311d868307f1d5ea2b681cc",
      "fileid": "https://r2.ropensci.org/c908028cfe3d501ec37d84cb9f5907745d9809dab102efe68888883adc516bcd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701581913"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-07-04T09:17:07.000Z",
      "arch": "x86_64",
      "commit": "a2b5cf95d239abd4f311d868307f1d5ea2b681cc",
      "fileid": "https://r2.ropensci.org/3b43bd4f7e7c6836f60daecceba0d4fec8259d35a22f960d661a6fd4f4ec5dbf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701581913"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-07-04T09:17:03.000Z",
      "arch": "x86_64",
      "commit": "a2b5cf95d239abd4f311d868307f1d5ea2b681cc",
      "fileid": "https://r2.ropensci.org/683e92bc12578d5b92ffdf6e2ba2eabf54931e6aaf0109b56a3b446ea3a9c889",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/28701581913"
    }
  ]
}