Skip to content

Commit

Permalink
try again. (dmlc#5141)
Browse files Browse the repository at this point in the history
Co-authored-by: Steve <[email protected]>
  • Loading branch information
frozenbugs and Steve authored Jan 11, 2023
1 parent e032de5 commit d837029
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions python/dgl/sparse/elementwise_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def add(
) -> Union[DiagMatrix, SparseMatrix]:
"""Elementwise additions for `DiagMatrix` and `SparseMatrix`.
The supported combinations are shown as follow.
The supported combinations are shown as follows.
+--------------+------------+--------------+--------+
| A \ B | DiagMatrix | SparseMatrix | scalar |
+--------------+------------+--------------+--------+
Expand Down Expand Up @@ -56,7 +57,8 @@ def add(
def sub(A: Union[DiagMatrix], B: Union[DiagMatrix]) -> Union[DiagMatrix]:
"""Elementwise subtraction for `DiagMatrix` and `SparseMatrix`.
The supported combinations are shown as follow.
The supported combinations are shown as follows.
+--------------+------------+--------------+--------+
| A \ B | DiagMatrix | SparseMatrix | scalar |
+--------------+------------+--------------+--------+
Expand Down Expand Up @@ -95,7 +97,8 @@ def power(
) -> Union[SparseMatrix, DiagMatrix]:
"""Elementwise exponentiation for `DiagMatrix` and `SparseMatrix`.
The supported combinations are shown as follow.
The supported combinations are shown as follows.
+--------------+------------+--------------+--------+
| A \ B | DiagMatrix | SparseMatrix | scalar |
+--------------+------------+--------------+--------+
Expand Down

0 comments on commit d837029

Please sign in to comment.