Unverified Commit 2a78e48f authored by Hongzhi (Steve), Chen's avatar Hongzhi (Steve), Chen Committed by GitHub
Browse files
parent 41b41809
...@@ -17,7 +17,7 @@ def add( ...@@ -17,7 +17,7 @@ def add(
The supported combinations are shown as follows. The supported combinations are shown as follows.
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
| A \ B | DiagMatrix | SparseMatrix | scalar | | A \\ B | DiagMatrix | SparseMatrix | scalar |
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
| DiagMatrix | ✅ | ✅ | 🚫 | | DiagMatrix | ✅ | ✅ | 🚫 |
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
...@@ -56,13 +56,13 @@ def add( ...@@ -56,13 +56,13 @@ def add(
def sub(A: Union[DiagMatrix], B: Union[DiagMatrix]) -> Union[DiagMatrix]: def sub(A: Union[DiagMatrix], B: Union[DiagMatrix]) -> Union[DiagMatrix]:
r"""Elementwise subtraction for ``DiagMatrix`` and ``SparseMatrix``. This is r"""Elementwise subtraction for ``DiagMatrix`` and ``SparseMatrix``,
equivalent to ``A - B``. equivalent to ``A - B``.
The supported combinations are shown as follows. The supported combinations are shown as follows.
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
| A \ B | DiagMatrix | SparseMatrix | scalar | | A \\ B | DiagMatrix | SparseMatrix | scalar |
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
| DiagMatrix | ✅ | 🚫 | 🚫 | | DiagMatrix | ✅ | 🚫 | 🚫 |
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
...@@ -104,7 +104,7 @@ def mul( ...@@ -104,7 +104,7 @@ def mul(
The supported combinations are shown as follows. The supported combinations are shown as follows.
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
| A \ B | DiagMatrix | SparseMatrix | scalar | | A \\ B | DiagMatrix | SparseMatrix | scalar |
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
| DiagMatrix | ✅ | 🚫 | ✅ | | DiagMatrix | ✅ | 🚫 | ✅ |
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
...@@ -159,7 +159,7 @@ def div( ...@@ -159,7 +159,7 @@ def div(
The supported combinations are shown as follows. The supported combinations are shown as follows.
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
| A \ B | DiagMatrix | SparseMatrix | scalar | | A \\ B | DiagMatrix | SparseMatrix | scalar |
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
| DiagMatrix | ✅ | 🚫 | ✅ | | DiagMatrix | ✅ | 🚫 | ✅ |
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
...@@ -205,7 +205,7 @@ def power( ...@@ -205,7 +205,7 @@ def power(
The supported combinations are shown as follows. The supported combinations are shown as follows.
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
| A \ B | DiagMatrix | SparseMatrix | scalar | | A \\ B | DiagMatrix | SparseMatrix | scalar |
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
| DiagMatrix | 🚫 | 🚫 | ✅ | | DiagMatrix | 🚫 | 🚫 | ✅ |
+--------------+------------+--------------+--------+ +--------------+------------+--------------+--------+
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment