Variables | |
diag_mat = sparse_matrix.diagonal(diag_values) | |
diag_mat_copy = sparse_matrix.copy(diag_mat) | |
diag_mat_csr = csr_matrix(diag_mat) | |
diag_values = rng.random(10) | |
m = sparse_matrix.emptyMatrix() | |
rng = np.random.default_rng() | |
v = sparse_matrix.emptyVector() | |
zero_mat = csr_matrix(np.zeros((10, 1))) | |
zero_mat_copy = sparse_matrix.copy(zero_mat) | |
test_sparse_matrix.diag_mat = sparse_matrix.diagonal(diag_values) |
Definition at line 19 of file test_sparse_matrix.py.
test_sparse_matrix.diag_mat_copy = sparse_matrix.copy(diag_mat) |
Definition at line 22 of file test_sparse_matrix.py.
test_sparse_matrix.diag_mat_csr = csr_matrix(diag_mat) |
Definition at line 25 of file test_sparse_matrix.py.
test_sparse_matrix.diag_values = rng.random(10) |
Definition at line 18 of file test_sparse_matrix.py.
test_sparse_matrix.m = sparse_matrix.emptyMatrix() |
Definition at line 5 of file test_sparse_matrix.py.
test_sparse_matrix.rng = np.random.default_rng() |
Definition at line 17 of file test_sparse_matrix.py.
test_sparse_matrix.v = sparse_matrix.emptyVector() |
Definition at line 8 of file test_sparse_matrix.py.
test_sparse_matrix.zero_mat = csr_matrix(np.zeros((10, 1))) |
Definition at line 29 of file test_sparse_matrix.py.
test_sparse_matrix.zero_mat_copy = sparse_matrix.copy(zero_mat) |
Definition at line 30 of file test_sparse_matrix.py.