{"id":26035468,"url":"https://github.com/saliola/nonnegative_integer_matrices","last_synced_at":"2026-04-18T01:31:19.528Z","repository":{"id":280220696,"uuid":"941334127","full_name":"saliola/nonnegative_integer_matrices","owner":"saliola","description":"code to generate and count nonnegative integer matrices with prescribe row and column sums (aka contingency tables)","archived":false,"fork":false,"pushed_at":"2025-03-06T02:36:32.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T01:24:53.123Z","etag":null,"topics":["cython","cython-examples","numpy","numpy-examples","python3"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/saliola.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-02T03:21:33.000Z","updated_at":"2025-03-06T02:36:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca9f2326-98c0-49ba-bdb3-1a88cebebdde","html_url":"https://github.com/saliola/nonnegative_integer_matrices","commit_stats":null,"previous_names":["saliola/nonnegative_integer_matrices"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saliola/nonnegative_integer_matrices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saliola%2Fnonnegative_integer_matrices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saliola%2Fnonnegative_integer_matrices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saliola%2Fnonnegative_integer_matrices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saliola%2Fnonnegative_integer_matrices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saliola","download_url":"https://codeload.github.com/saliola/nonnegative_integer_matrices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saliola%2Fnonnegative_integer_matrices/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953509,"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":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: 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":["cython","cython-examples","numpy","numpy-examples","python3"],"created_at":"2025-03-07T04:52:53.610Z","updated_at":"2026-04-18T01:31:19.463Z","avatar_url":"https://github.com/saliola.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generating nonnegative integer matrices with prescribed row and column sums\n\nImplementations in different languages of an algorithm to generate nonnegative\ninteger matrices with prescribed row and column sums. These are also known as\n[contingency tables](https://en.wikipedia.org/wiki/Contingency_table).\n\n\n## python\n\nThe file `nonneg_int_matrices.py` contains an example/test.\n```bash\n$ cd python\n$ python nonneg_int_matrices.py\n[[0, 3], [0, 1], [5, 0]]\n[[0, 3], [1, 0], [4, 1]]\n[[1, 2], [0, 1], [4, 1]]\n[[1, 2], [1, 0], [3, 2]]\n[[2, 1], [0, 1], [3, 2]]\n[[2, 1], [1, 0], [2, 3]]\n[[3, 0], [0, 1], [2, 3]]\n[[3, 0], [1, 0], [1, 4]]\n```\n\n## numpy\n\nInstall numpy if it is not already installed:\n```bash\n$ pip install numpy\n```\n\nThe file `nonneg_int_matrices.py` contains an example/test.\n```bash\n$ cd numpy\n$ python nonneg_int_matrices.py\n[[0 3]\n [0 1]\n [5 0]]\n[[0 3]\n [1 0]\n [4 1]]\n[[1 2]\n [0 1]\n [4 1]]\n[[1 2]\n [1 0]\n [3 2]]\n[[2 1]\n [0 1]\n [3 2]]\n[[2 1]\n [1 0]\n [2 3]]\n[[3 0]\n [0 1]\n [2 3]]\n[[3 0]\n [1 0]\n [1 4]]\n```\n\n## cython\n\nInstall cython if it is not already installed:\n```bash\n$ pip install cython\n```\n\nThe file `nonneg_int_matrices.py` contains an example/test.\n```bash\n$ cd cython\n$ make\n$ python nonneg_int_matrices.py\n[[0, 3], [0, 1], [5, 0]]\n[[0, 3], [1, 0], [4, 1]]\n[[1, 2], [0, 1], [4, 1]]\n[[1, 2], [1, 0], [3, 2]]\n[[2, 1], [0, 1], [3, 2]]\n[[2, 1], [1, 0], [2, 3]]\n[[3, 0], [0, 1], [2, 3]]\n[[3, 0], [1, 0], [1, 4]]\n```\n\n## cython with numpy\n\nInstall cython and numpy if not already installed:\n```bash\n$ pip install cython\n$ pip install numpy\n```\n\nThe file `nonneg_int_matrices.py` contains an example/test.\n```bash\n$ cd cython-with-numpy\n$ make\n$ python nonneg_int_matrices.py\n[[0 3]\n [0 1]\n [5 0]]\n[[0 3]\n [1 0]\n [4 1]]\n[[1 2]\n [0 1]\n [4 1]]\n[[1 2]\n [1 0]\n [3 2]]\n[[2 1]\n [0 1]\n [3 2]]\n[[2 1]\n [1 0]\n [2 3]]\n[[3 0]\n [0 1]\n [2 3]]\n[[3 0]\n [1 0]\n [1 4]]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaliola%2Fnonnegative_integer_matrices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaliola%2Fnonnegative_integer_matrices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaliola%2Fnonnegative_integer_matrices/lists"}