iskra.sparse#
|
Sane PyTorch sparse tensor. |
|
Creates an alias (view) of a tensor. |
|
Appends new values to an existing COO tensor. |
|
Concatenates sparse COO matrices along a dimension. |
|
Constructs a COO |
|
Constructs a CSR |
|
Constructs a sparse COO diagonal matrix from vector of diagonal elements. |
|
Constructs a sparse COO identity matrix. |
|
Sets all nonzero entries in a slice of a sparse COO tensor to a chosen value. |
|
Converts SciPy sparse COO/CSR arrays into PyTorch sparse tensors. |
|
Extracts diagonal from sparse COO matrix. |
|
Slices a sparse tensor. |
|
Computes the complement of a set of linear indices. |
|
Inverts elements of a diagonal COO matrix. |
Checks if tensor is either in sparse COO or CSR format. |
|
|
Checks which indices in two tensors apepar in both. |
|
Matrix-matrix product with support for sparse COO tensors. |
|
Elementwise product of two tensors with support for sparse COO tensors. |
|
Elementwise product of two sparse COO tensors. |
|
Converts a COO indices into a linear index corresponding to a strided layout. |
|
Repeats a sparse COO matrix along a diagonal to make a block-diagonal matrix. |
|
Returns a sparse COO tensor with the same data, but with the specified shape. |
|
Elementwise square of sparse tensors. |
|
Converts PyTorch sprase COO/CSR tensors into SciPy sparse arrays. |
|
Converts a linear index into COO indices. |
|