-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Distributed Compressed Sparse Column Matrix (#1377)
* modified factory method to include compressed column type * Created a base class for both DCSR_matrix and DCSC_matrix * Updated docstrings and type annotations. The class, methods and dense/sparse conversion is complete. * refactoring changes * Arithmetric operations implemented * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * PyTorch CSC tensors do not support arithmetic ops yet * tests for csc matrix - manipulations * tests for DCSC_matrix class methods * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * tests for sparse_csc factory method * added name to CITATION.cff * fix: fixed dtype conversion bug in astype method * skip type conversion test for DCSC_matrix if torch < 2.0 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Fabian Hoppe <[email protected]> Co-authored-by: Claudia Comito <[email protected]>
- Loading branch information
1 parent
ee0d72a
commit 0e40d14
Showing
12 changed files
with
1,460 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
"""add sparse heat function to the ht.sparse namespace""" | ||
|
||
from .arithmetics import * | ||
from .dcsr_matrix import * | ||
from .dcsx_matrix import * | ||
from .factories import * | ||
from ._operations import * | ||
from .manipulations import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.