{"id":20117264,"url":"https://github.com/johann-petrak/python-sparsevectors","last_synced_at":"2026-04-18T10:32:56.826Z","repository":{"id":141230280,"uuid":"93956828","full_name":"johann-petrak/python-sparsevectors","owner":"johann-petrak","description":"A simple fast sparse vectors module based on defaultdict(float)","archived":false,"fork":false,"pushed_at":"2017-06-14T16:30:35.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T19:31:56.196Z","etag":null,"topics":["python-extension","python3","sparse-vectors"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johann-petrak.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-10T18:02:38.000Z","updated_at":"2017-07-24T17:52:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc20b741-cd78-49a2-9495-3f7db3f9c87a","html_url":"https://github.com/johann-petrak/python-sparsevectors","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johann-petrak/python-sparsevectors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johann-petrak%2Fpython-sparsevectors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johann-petrak%2Fpython-sparsevectors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johann-petrak%2Fpython-sparsevectors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johann-petrak%2Fpython-sparsevectors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johann-petrak","download_url":"https://codeload.github.com/johann-petrak/python-sparsevectors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johann-petrak%2Fpython-sparsevectors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31965849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["python-extension","python3","sparse-vectors"],"created_at":"2024-11-13T18:44:33.057Z","updated_at":"2026-04-18T10:32:56.810Z","avatar_url":"https://github.com/johann-petrak.png","language":"C","readme":"========\r\nsparsevectors\r\n========\r\n\r\nA library that provides the SparseVector object which is defaultdict(float) with \r\nthe following properties and methods:\r\n\r\n- getting a non-existing element always returns 0.0\r\n- method dot(other) returns the dot-product between this SparseVector and another\r\n- method iaddc(other[,weight]) adds to each element in this SparseVector the\r\n  corresponding element of the other SparseVector, multiplied by weight, if given.\r\n  If the result is 0.0, then the element in the current SparseVector is removed\r\n\r\n\r\nAuthors\r\n-------\r\n\r\nThis code is based on the cpython defaultdict code (see https://github.com/python/cpython)\r\nand is inspired by Liang Huang's (http://web.engr.oregonstate.edu/~huanlian) hvector \r\nlibrary (http://web.engr.oregonstate.edu/~huanlian/software/hvector-1.0.tar.bz). \r\nAny errors are mine though.\r\n\r\n* Johann Petrak\r\n* Liang Huang \r\n* Authors and contributors to CPython's _collectionsmodule.c\r\n\r\n\r\nStatus\r\n------\r\n\r\nThis is still an early version and may contain bugs, memory leaks. \r\nAny help to make it better or in finding and squashing bugs is welcome.\r\n\r\nInstallation\r\n------------\r\n\r\nTBD\r\n\r\n\r\nLicense\r\n-------\r\n\r\nLicensed under the terms of the `CPython License`_. See attached file LICENSE.txt.\r\n\r\n\r\n.. _CPython License: https://github.com/python/cpython/blob/master/LICENSE\r\n\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohann-petrak%2Fpython-sparsevectors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohann-petrak%2Fpython-sparsevectors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohann-petrak%2Fpython-sparsevectors/lists"}