{"id":32207612,"url":"https://github.com/zamorarr/tensorr","last_synced_at":"2026-02-21T00:02:39.880Z","repository":{"id":56937028,"uuid":"80943476","full_name":"zamorarr/tensorr","owner":"zamorarr","description":"Sparse Tensors in R","archived":false,"fork":false,"pushed_at":"2019-03-09T14:05:59.000Z","size":231,"stargazers_count":11,"open_issues_count":3,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-03-17T19:03:35.649Z","etag":null,"topics":["r","rstats","sparse","sparse-tensors","tensors"],"latest_commit_sha":null,"homepage":"https://zamorarr.github.io/tensorr/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zamorarr.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-04T19:39:56.000Z","updated_at":"2024-03-17T19:03:35.650Z","dependencies_parsed_at":"2022-08-21T01:10:26.212Z","dependency_job_id":null,"html_url":"https://github.com/zamorarr/tensorr","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zamorarr/tensorr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zamorarr%2Ftensorr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zamorarr%2Ftensorr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zamorarr%2Ftensorr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zamorarr%2Ftensorr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zamorarr","download_url":"https://codeload.github.com/zamorarr/tensorr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zamorarr%2Ftensorr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29668637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T23:24:07.480Z","status":"ssl_error","status_checked_at":"2026-02-20T23:24:06.202Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["r","rstats","sparse","sparse-tensors","tensors"],"created_at":"2025-10-22T05:56:08.328Z","updated_at":"2026-02-21T00:02:39.875Z","avatar_url":"https://github.com/zamorarr.png","language":"R","readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n# tensorr: sparse tensors in R\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/tensorr)](https://cran.r-project.org/package=tensorr)\n[![Build Status](https://travis-ci.org/zamorarr/tensorr.svg?branch=master)](https://travis-ci.org/zamorarr/tensorr) \n[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/zamorarr/tensorr?branch=master\u0026svg=true)](https://ci.appveyor.com/project/zamorarr/tensorr) \n[![Coverage Status](https://img.shields.io/codecov/c/github/zamorarr/tensorr/master.svg)](https://codecov.io/github/zamorarr/tensorr?branch=master)\n\n`tensorr` provides methods to manipulate and store sparse tensors. Tensors are multi-dimensional generalizations of matrices (two dimensional) and vectors (one dimensional).\n\nIt has three main goals:\n\n- Provide an efficient format to store sparse tensors in R.\n- Provide standard tensor operations such as multiplication and unfolding.\n- Provide standard tensor decomposition techniques such as CP and Tucker.\n\n## Installation\nThe development version of **tensorr** is available on github.\n```{r eval = FALSE}\ndevtools::install_github(\"zamorarr/tensorr\")\n```\n\n## Usage\nSee the [introduction vignette](https://zamorarr.github.io/tensorr/articles/introduction.html)\nfor a comprehensive overview. To create a sparse tensor you have to provide the \nnon-zero values, subscripts to the non-zero values, and the overall dimensions \nof the tensor.\n\n```{r into-sparse, message = FALSE}\nlibrary(tensorr)\n\nsubs \u003c- list(c(1,1,1), c(1,1,2))\nvals \u003c- c(10, 20)\ndims \u003c- c(2,2,2)\nx \u003c- sptensor(subs, vals, dims)\nx\n```\n\n## Tensor References\nMany of the dense and sparse implementation ideas were adpated from:\n\n - B. W. Bader and T. G. Kolda. Algorithm 862: MATLAB tensor classes for fast algorithm prototyping, ACM Transactions on Mathematical Software 32(4):635-653, December 2006.\n- B. W. Bader and T. G. Kolda. Efficient MATLAB computations with sparse and factored tensors, SIAM Journal on Scientific Computing 30(1):205-231, December 2007.\n- [scikit-tensor](https://github.com/mnick/scikit-tensor)\n\nFor a review on tensors, see:\n\n- T. G. Kolda and B. W. Bader, Tensor Decompositions and Applications, SIAM Review 51(3):455-500, September 2009\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzamorarr%2Ftensorr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzamorarr%2Ftensorr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzamorarr%2Ftensorr/lists"}