{
  "_id": "6af3149b535793c8533263e1",
  "Package": "sparsediff",
  "Type": "Package",
  "Title": "R Interface to the 'SparseDiffEngine' Sparse Differentiation\nBackend",
  "Version": "0.6.1",
  "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",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "yes",
  "Config/roxygen2/version": "8.1.0",
  "Config/pak/sysreqs": "make",
  "Repository": "https://bnaras.r-universe.dev",
  "Date/Publication": "2026-10-07 01:11:26 UTC",
  "RemoteUrl": "https://github.com/bnaras/sparsediff",
  "RemoteRef": "HEAD",
  "RemoteSha": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
  "Packaged": {
    "Date": "2026-11-10 12:27:51 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.6.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/d4083971320f172eeb5e6d3bf062eedc00cb12f722db93359edd33a67d64b7da",
  "_filesize": 366338,
  "_sha256": "d4083971320f172eeb5e6d3bf062eedc00cb12f722db93359edd33a67d64b7da",
  "_expires": "2027-02-18T12:56:57.000Z",
  "_created": "2026-11-10T12:27:51.000Z",
  "_published": "2026-11-10T12:56:59.489Z",
  "_upstream": "https://github.com/bnaras/sparsediff",
  "_status": "success",
  "_maintainer": {
    "name": "Balasubramanian Narasimhan",
    "email": "naras@stanford.edu",
    "login": "bnaras",
    "description": "",
    "uuid": 3030361
  },
  "_jobs": [
    {
      "job": 129829226689,
      "time": 104,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13765125444"
    },
    {
      "job": 129829226725,
      "time": 119,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13764835980"
    },
    {
      "job": 129829226629,
      "time": 155,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13765140506"
    },
    {
      "job": 129829226732,
      "time": 168,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13765575470"
    },
    {
      "job": 129829226498,
      "time": 219,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13765236749"
    },
    {
      "job": 129829226517,
      "time": 275,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13765439231"
    },
    {
      "job": 129829226616,
      "time": 189,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13764792510"
    },
    {
      "job": 129829226427,
      "time": 274,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13767075158"
    },
    {
      "job": 129827456503,
      "time": 219,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13764855552"
    },
    {
      "job": 129829226611,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13765775368"
    },
    {
      "job": 129829226719,
      "time": 371,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13765816030"
    },
    {
      "job": 129829226809,
      "time": 189,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13764646077"
    },
    {
      "job": 129829226818,
      "time": 151,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13764805759"
    },
    {
      "job": 129829226806,
      "time": 367,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13765651127"
    },
    {
      "job": 129829226722,
      "time": 115,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13766015116"
    }
  ],
  "_buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624",
  "_commit": {
    "id": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
    "author": "Balasubramanian Narasimhan <b.naras@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #2: sparsediff 0.6.1 (SparseDiffEngine 0.6.1)\n\nsparsediff 0.6.1, accepted on CRAN.",
    "time": 1791335486
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "cpp11",
      "role": "LinkingTo"
    },
    {
      "package": "cpp11",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "bnaras",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-21",
      "n": 8
    },
    {
      "week": "2026-23",
      "n": 1
    },
    {
      "week": "2026-41",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.4.0",
      "date": "2026-06-03"
    },
    {
      "name": "v0.6.1",
      "date": "2026-10-06"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "bnaras",
      "count": 23,
      "uuid": 3030361
    }
  ],
  "_userbio": {
    "uuid": 3030361,
    "type": "user",
    "name": "Balasubramanian Narasimhan",
    "followers": 73
  },
  "_downloads": {
    "count": 391,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sparsediff"
  },
  "_devurl": "https://github.com/bnaras/sparsediff",
  "_pkgdown": "https://bnaras.github.io/sparsediff/",
  "_searchresults": 4,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/sparsediff.html"
  ],
  "_homeurl": "https://github.com/bnaras/sparsediff",
  "_realowner": "bnaras",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.4.0",
      "date": "2026-06-08"
    },
    {
      "version": "0.6.1",
      "date": "2026-10-06"
    }
  ],
  "_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_get_expr_dimensions",
    "sd_get_expr_size",
    "sd_get_hessian",
    "sd_get_jacobian",
    "sd_gradient",
    "sd_hessian",
    "sd_hessian_sparsity",
    "sd_hessian_values",
    "sd_hstack",
    "sd_index",
    "sd_init_derivatives",
    "sd_init_hessian",
    "sd_init_hessian_coo",
    "sd_init_jacobian",
    "sd_init_jacobian_coo",
    "sd_jacobian",
    "sd_jacobian_sparsity",
    "sd_jacobian_values",
    "sd_left_kron",
    "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_form_dense",
    "sd_quad_over_lin",
    "sd_register_params",
    "sd_rel_entr",
    "sd_rel_entr_first_scalar",
    "sd_rel_entr_second_scalar",
    "sd_reshape",
    "sd_right_kron",
    "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-getters",
      "title": "Expression shape",
      "topics": [
        "sd_get_expr_dimensions",
        "sd_get_expr_size",
        "sparsediff-getters"
      ]
    },
    {
      "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_kron",
        "sd_left_matmul",
        "sd_left_matmul_dense",
        "sd_quad_form",
        "sd_quad_form_dense",
        "sd_right_kron",
        "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_get_hessian",
        "sd_get_jacobian",
        "sd_gradient",
        "sd_hessian",
        "sd_hessian_sparsity",
        "sd_hessian_values",
        "sd_init_derivatives",
        "sd_init_hessian",
        "sd_init_hessian_coo",
        "sd_init_jacobian",
        "sd_init_jacobian_coo",
        "sd_jacobian",
        "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.176091259055681,
  "_indexed": true,
  "_nocasepkg": "sparsediff",
  "_universes": [
    "bnaras"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.1",
      "date": "2026-11-10T12:29:43.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/ed9a9d699390461b1d71d3e366d7d03f8af8aea940f4ae158c5e85dbc9ac327b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.1",
      "date": "2026-11-10T12:29:58.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/9de8eaee5f19596b43a711969a437818205fd313cfa919fe8a6e9894505bc198",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.6.1",
      "date": "2026-11-10T12:30:38.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/489d075c8553e2e6cc5b93da36d5e3615f74f07f09488de1f9db97cf7d3e259d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.6.1",
      "date": "2026-11-10T12:30:40.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/302186f8f384ac36b5a45589c44c6f0ab6c88c66c7c64394501b297eb44a9523",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.1",
      "date": "2026-11-10T12:38:37.000Z",
      "arch": "aarch64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/31f2b7ac3268bcb60a4c618a8fa05fb6508fafef455b4867e68ab376efcc6fbd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.1",
      "date": "2026-11-10T12:54:03.000Z",
      "arch": "x86_64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/5e58ea94cf23590d222f4bddc4d50e606ac3a1b7a12d723586996f0946601681",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.6.1",
      "date": "2026-11-10T12:40:04.000Z",
      "arch": "aarch64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/586d57fd373a33a01e3e0fe191ea910195419692a31f9eed58864f5d67f605d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.6.1",
      "date": "2026-11-10T12:54:59.000Z",
      "arch": "x86_64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/283a235372540d6e7f6c7a7466171703dd76e5891e1b044b00856be29db8d0c5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6.1",
      "date": "2026-11-10T12:30:01.000Z",
      "arch": "emscripten",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/a139d593dcc97e2d097bd24890d7515c0eded795d5737ffc1835133bfb1ea255",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-11-10T12:32:56.000Z",
      "arch": "aarch64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/b226cbb22f68eec4a9e0cd9277da9672b60c7da3fe687ef5c1a6b721635b5282",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-11-10T12:29:41.000Z",
      "arch": "x86_64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/b189d37399a5201b1d0ff6059d4073c6522c1c9133275871218c50cec46ce6df",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-11-10T12:29:43.000Z",
      "arch": "x86_64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/a74752dec944230f3104b490865d7a8b198536a186b1afa5892d83f0111cb739",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-11-10T12:33:04.000Z",
      "arch": "aarch64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/0c89bc0986d32517e5179791407ab00ede43f7e64879dda2ff758b40310bc1a5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-11-10T12:29:07.000Z",
      "arch": "x86_64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/44bd4a4465ea91ec17269b2333d53b25df67c21fee395a61c73b018594a9d4d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/42815465624"
    }
  ]
}