Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
d8370299
Unverified
Commit
d8370299
authored
Jan 11, 2023
by
Hongzhi (Steve), Chen
Committed by
GitHub
Jan 11, 2023
Browse files
try again. (#5141)
Co-authored-by:
Steve
<
ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal
>
parent
e032de58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
python/dgl/sparse/elementwise_op.py
python/dgl/sparse/elementwise_op.py
+6
-3
No files found.
python/dgl/sparse/elementwise_op.py
View file @
d8370299
...
...
@@ -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 |
+--------------+------------+--------------+--------+
...
...
@@ -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 |
+--------------+------------+--------------+--------+
...
...
@@ -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 |
+--------------+------------+--------------+--------+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment