Random Sparse Matrix Generator in Python
In brief
This Python package implements the function random_sparse_matrix that generates random sparse matrices.
Installation
To install from GitHub use the shell command:
python -m pip install git+https://github.com/antononcube/Python-packages.git#egg=RandomSparseMatrix\&subdirectory=RandomSparseMatrix
To install from PyPI:
python -m pip install RandomSparseMatrix
Examples
Here is random sparse matrix
(SSparseMatrix object)
with 6 rows and 4 columns:
import random
from RandomSparseMatrix import *
random.seed(87)
rmat = random_sparse_matrix(6, 4,
column_names_generator=random_pet_name,
row_names_generator=random_word,
min_number_of_values=6,
max_number_of_values=None)
rmat.print_matrix(n_digits=20)
# ============================================================================================
# | Cleo Diamond Max Tessa
# --------------------------------------------------------------------------------------------
# cuticular | . . . 12.886794438387263
# elysian | . . . 13.891135469455826
# spot-check | . 11.465064963144142 . .
# cetacean | . 9.626463367706222 . .
# idem | 5.474873249244756 . . .
# lot | . . 10.818678723268317 .
# ============================================================================================
References
[AAp1] Anton Antonov, SSparseMatrix Python package, (2021), PyPI.
[AAp2] Anton Antonov, RandomDataGenerators Python package, (2021), PyPI.
[AAp3] Anton Antonov, SparseMatrixRecommender Python package, (2021), PyPI.
Metadata
Release files for RandomSparseMatrix 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| RandomSparseMatrix-0.1.0.tar.gz | 4.5 kB | Without provenance | Details for RandomSparseMatrix-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| RandomSparseMatrix-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for RandomSparseMatrix-0.1.0-py3-none-any.whl |
Total release size: 9.4 kB
Release files / RandomSparseMatrix-0.1.0.tar.gz
| Download URL | RandomSparseMatrix-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc2deee6a6cf2ed91e6ddc16cb60ae062dcf56663e505de09c4d9e742cd7ef3d
|
|
BLAKE2b-256 checksum How to use checksums |
b23aa9692a0a1d03b0587a17e556e9b3f005e42180d282c95b919fbe0584798c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / RandomSparseMatrix-0.1.0-py3-none-any.whl
| Download URL | RandomSparseMatrix-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f605046db00fae3a0c64b6f8dd7a9fcf912f148480d785f76e80f51b0b429e7b
|
|
BLAKE2b-256 checksum How to use checksums |
0475da35f874ce381ac92e40ae8bb883a98e23697bc1632a807bc70560afd827
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for RandomSparseMatrix 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.