{
  "_id": "6acb7abafe5cc25786e909ec",
  "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-10-11 11:57:14 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/417bc7fdd708629eae2461d36f9176a4feb5ef512848a00915669e978262d5c4",
  "_filesize": 366314,
  "_sha256": "417bc7fdd708629eae2461d36f9176a4feb5ef512848a00915669e978262d5c4",
  "_expires": "2027-01-19T12:02:00.000Z",
  "_created": "2026-10-11T11:57:14.000Z",
  "_published": "2026-10-11T12:02:02.425Z",
  "_buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114464193943,
      "time": 94,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11701602149"
    },
    {
      "job": 114464193947,
      "time": 124,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11701821707"
    },
    {
      "job": 114464193986,
      "time": 144,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11701406722"
    },
    {
      "job": 114464194012,
      "time": 113,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11701657011"
    },
    {
      "job": 114464193961,
      "time": 115,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11701796782"
    },
    {
      "job": 114464193992,
      "time": 203,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11701871694"
    },
    {
      "job": 114464193939,
      "time": 105,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11701931488"
    },
    {
      "job": 114464193924,
      "time": 218,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11702051527"
    },
    {
      "job": 114463655230,
      "time": 179,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11701122220"
    },
    {
      "job": 114464193878,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11701801685"
    },
    {
      "job": 114464193900,
      "time": 240,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11701752062"
    },
    {
      "job": 114464193944,
      "time": 152,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11701652242"
    },
    {
      "job": 114464193920,
      "time": 95,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11701921390"
    },
    {
      "job": 114464193965,
      "time": 227,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11701627383"
    },
    {
      "job": 114464193925,
      "time": 147,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11701856746"
    }
  ],
  "_upstream": "https://github.com/bnaras/sparsediff",
  "_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
  },
  "_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"
    },
    {
      "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": 373,
    "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.1",
  "_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-10-11T11:58:58.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/20912f97c732f301eef626d0651b871296498f31330b85be45eb6dd7bbac4a8f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6.1",
      "date": "2026-10-11T11:59:17.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/6f34463d430a231eb793ce8be30803fdba6ac656b4626f4731243c2cd6df4706",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.6.1",
      "date": "2026-10-11T11:59:59.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/9c7c2e80a65fd8fd0c664c10670dd2104bf67d7f2c556e2ff4cc6e813fe77b89",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.6.1",
      "date": "2026-10-11T11:59:14.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/1491e435a6a047ff694c910b2d8c23cd35c4fd67d05aeb2750096f03412e1e8d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.1",
      "date": "2026-10-11T11:59:12.000Z",
      "arch": "aarch64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/0c9cc6f4282b386f88c1e0153a83ae7cc048a369727b6705e9302ba6398d0dea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6.1",
      "date": "2026-10-11T12:00:08.000Z",
      "arch": "x86_64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/f2c768c45979acd9249668b5a498da8439425aa3899a7b2101302eea7926e831",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.6.1",
      "date": "2026-10-11T11:59:06.000Z",
      "arch": "aarch64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/609d6889800057ccd0282fceb02e9913194b1637601abf865cef738520f50ea4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.6.1",
      "date": "2026-10-11T12:00:36.000Z",
      "arch": "x86_64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/66f77b3c3762ef0d06fc830e1063e54ba0bcfd558c21ce6638c4fad57afcafba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6.1",
      "date": "2026-10-11T11:59:24.000Z",
      "arch": "emscripten",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/ae2f458ca492fdad99bdfae0b467e90811423182b7b178af0873593340f58a9f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-10-11T12:00:43.000Z",
      "arch": "aarch64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/7b2068f63a0cd6832ac8ac86f1b6b499088fbec20a6e11c6bc7cb20d4d4ee819",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-10-11T11:58:30.000Z",
      "arch": "x86_64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/d38cf3bd308fa61bc2ba2885a61acec7deb483affb0966857aec62734c696157",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-10-11T11:58:25.000Z",
      "arch": "x86_64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/7fe7895d310733054f57818fbff737c94c5fee70998895b3d3d3536439d8117a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-10-11T12:00:30.000Z",
      "arch": "aarch64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/2f51ea71902232cbc2a7598b5fa30bbcdb668ddce5167c7ac68feef64b94ca0b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.6.1",
      "date": "2026-10-11T11:58:43.000Z",
      "arch": "x86_64",
      "commit": "48210c45c479a0548fbb2ac228cc6845afaf19b7",
      "fileid": "https://r2.ropensci.org/c1c4ba444a4ca7b7ef4c0e4b2a5af7364d78f10c3dc0eb49e8be16892125fca9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bnaras/actions/runs/38137272059"
    }
  ]
}