{
  "_id": "6ac23fb3d743750d376d75e5",
  "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",
  "Packaged": {
    "Date": "2026-10-04 11:54:57 UTC",
    "User": "root"
  },
  "Author": "Balasubramanian Narasimhan [aut, cre], Daniel Cederberg [aut,\ncph] (Author of the bundled SparseDiffEngine C library),\nWilliam Zijie Zhang [aut, cph] (Author of the bundled\nSparseDiffEngine C library)",
  "Maintainer": "Balasubramanian Narasimhan <naras@stanford.edu>",
  "Config/pak/sysreqs": "make",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-06-08 19:30:08 UTC",
  "RemoteUrl": "https://github.com/cran/sparsediff",
  "RemoteRef": "HEAD",
  "RemoteSha": "bfb86ec3ace957a320ca323f675174b6985294f9",
  "_user": "cran",
  "_type": "src",
  "_file": "sparsediff_0.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/5e9183a688587f6194cd0e8d9e91e88f666ffc3727945b8c80a623a6185cfcf2",
  "_filesize": 316407,
  "_sha256": "5e9183a688587f6194cd0e8d9e91e88f666ffc3727945b8c80a623a6185cfcf2",
  "_expires": "2027-01-12T11:59:45.000Z",
  "_created": "2026-10-04T11:54:57.000Z",
  "_published": "2026-10-04T11:59:47.417Z",
  "_jobs": [
    {
      "job": 111430598362,
      "time": 94,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11302668708"
    },
    {
      "job": 111430598356,
      "time": 110,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11302427775"
    },
    {
      "job": 111430598358,
      "time": 135,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11302264696"
    },
    {
      "job": 111430598413,
      "time": 112,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11302713447"
    },
    {
      "job": 111430028955,
      "time": 209,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11301969665"
    },
    {
      "job": 111430598347,
      "time": 92,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11302389309"
    },
    {
      "job": 111430598439,
      "time": 238,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11302572753"
    },
    {
      "job": 111430598366,
      "time": 157,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11302384379"
    },
    {
      "job": 111430598406,
      "time": 211,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11302674014"
    },
    {
      "job": 111430598447,
      "time": 113,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11302549045"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/37200125925",
  "_status": "success",
  "_upstream": "https://github.com/cran/sparsediff",
  "_commit": {
    "id": "bfb86ec3ace957a320ca323f675174b6985294f9",
    "author": "Balasubramanian Narasimhan <naras@stanford.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.4.0\n",
    "time": 1780947008
  },
  "_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": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-24",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.4.0",
      "date": "2026-06-08"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "bnaras",
      "count": 1,
      "uuid": 3030361
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 630,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 262,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sparsediff"
  },
  "_devurl": "https://github.com/bnaras/sparsediff",
  "_pkgdown": "https://bnaras.github.io/sparsediff/",
  "_searchresults": 3,
  "_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/readme.html",
    "extra/readme.md",
    "extra/sparsediff.html"
  ],
  "_homeurl": "https://github.com/bnaras/sparsediff",
  "_realowner": "bnaras",
  "_cranurl": false,
  "_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/cran/sparsediff/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/cran/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-06-08 19:30:08",
      "modified": "2026-06-08 19:30:08",
      "commits": 1
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": false,
  "_nocasepkg": "sparsediff",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://bnaras.r-universe.dev/sparsediff",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-10-04T11:56:42.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "bfb86ec3ace957a320ca323f675174b6985294f9",
      "fileid": "https://r2.ropensci.org/6bc6f9c4a6caa932d21805ba7ee6c9044a2f9a5a6a4d5f2aa369473a12cb4e13",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37200125925"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-10-04T11:56:56.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "bfb86ec3ace957a320ca323f675174b6985294f9",
      "fileid": "https://r2.ropensci.org/73cf43bff905bed6aedd31701ae1c4e67215e2673637457f4f7277c99f20fc46",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37200125925"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-10-04T11:57:25.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "bfb86ec3ace957a320ca323f675174b6985294f9",
      "fileid": "https://r2.ropensci.org/02f1e78cc7fbe64e1e0e9441475fcca99bdb0c1bab25b816b8566c57e658402d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37200125925"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-10-04T11:56:55.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "bfb86ec3ace957a320ca323f675174b6985294f9",
      "fileid": "https://r2.ropensci.org/53a6fbf62f99776312b01bbe063022fcb75662f76a272b820a0e5c3e2a494cdb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37200125925"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-10-04T11:56:48.000Z",
      "arch": "emscripten",
      "commit": "bfb86ec3ace957a320ca323f675174b6985294f9",
      "fileid": "https://r2.ropensci.org/585bd75b46987983aa5ceb41c05405164c50d5e98ad9f54f13adb4b53714b8bd",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37200125925"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-04T11:58:29.000Z",
      "arch": "aarch64",
      "commit": "bfb86ec3ace957a320ca323f675174b6985294f9",
      "fileid": "https://r2.ropensci.org/59ca0bc6557c9687116a918001620cb12abca046593a85d2aa1e2196dc9c8867",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37200125925"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-04T11:56:22.000Z",
      "arch": "x86_64",
      "commit": "bfb86ec3ace957a320ca323f675174b6985294f9",
      "fileid": "https://r2.ropensci.org/14e079e6b03a27061adb802e696d27db75c48c78c5d0313ca1b908470272e944",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37200125925"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-04T11:58:05.000Z",
      "arch": "aarch64",
      "commit": "bfb86ec3ace957a320ca323f675174b6985294f9",
      "fileid": "https://r2.ropensci.org/05033b00dee45925d2111c9dbc742eafc02c06f4464a16c2773d33c931acc59c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37200125925"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-04T11:56:47.000Z",
      "arch": "x86_64",
      "commit": "bfb86ec3ace957a320ca323f675174b6985294f9",
      "fileid": "https://r2.ropensci.org/7cb0d501372cc55196ab2eaf66e09f15cdb87520c1cad06f5662e3b2e6670674",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/37200125925"
    }
  ]
}