| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c492972 commit f7d16ff
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -69,7 +69,7 @@ def where(condition: array, x1: array, x2: array, /) -> array: | |||
| 69 | 69 | Parameters | |
| 70 | 70 | ---------- | |
| 71 | 71 | condition: array | |
| 72 | - when ``True``, yield ``x1_i``; otherwise, yield ``x2_i``. Must be compatible with ``x1`` and ``x2`` (see :ref:`broadcasting`). | ||
| 72 | + when ``True``, yield ``x1_i``; otherwise, yield ``x2_i``. Should have a boolean data type. Must be compatible with ``x1`` and ``x2`` (see :ref:`broadcasting`). | ||
| 73 | 73 | x1: array | |
| 74 | 74 | first input array. Must be compatible with ``condition`` and ``x2`` (see :ref:`broadcasting`). | |
| 75 | 75 | x2: array | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -91,7 +91,7 @@ def where(condition: array, x1: array, x2: array, /) -> array: | |||
| 91 | 91 | Parameters | |
| 92 | 92 | ---------- | |
| 93 | 93 | condition: array | |
| 94 | - when ``True``, yield ``x1_i``; otherwise, yield ``x2_i``. Must be compatible with ``x1`` and ``x2`` (see :ref:`broadcasting`). | ||
| 94 | + when ``True``, yield ``x1_i``; otherwise, yield ``x2_i``. Should have a boolean data type. Must be compatible with ``x1`` and ``x2`` (see :ref:`broadcasting`). | ||
| 95 | 95 | x1: array | |
| 96 | 96 | first input array. Must be compatible with ``condition`` and ``x2`` (see :ref:`broadcasting`). | |
| 97 | 97 | x2: array | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -146,7 +146,7 @@ def where(condition: array, x1: array, x2: array, /) -> array: | |||
| 146 | 146 | Parameters | |
| 147 | 147 | ---------- | |
| 148 | 148 | condition: array | |
| 149 | - when ``True``, yield ``x1_i``; otherwise, yield ``x2_i``. Must be compatible with ``x1`` and ``x2`` (see :ref:`broadcasting`). | ||
| 149 | + when ``True``, yield ``x1_i``; otherwise, yield ``x2_i``. Should have a boolean data type. Must be compatible with ``x1`` and ``x2`` (see :ref:`broadcasting`). | ||
| 150 | 150 | x1: array | |
| 151 | 151 | first input array. Must be compatible with ``condition`` and ``x2`` (see :ref:`broadcasting`). | |
| 152 | 152 | x2: array | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -175,7 +175,7 @@ def where(condition: array, x1: array, x2: array, /) -> array: | |||
| 175 | 175 | Parameters | |
| 176 | 176 | ---------- | |
| 177 | 177 | condition: array | |
| 178 | - when ``True``, yield ``x1_i``; otherwise, yield ``x2_i``. Must be compatible with ``x1`` and ``x2`` (see :ref:`broadcasting`). | ||
| 178 | + when ``True``, yield ``x1_i``; otherwise, yield ``x2_i``. Should have a boolean data type. Must be compatible with ``x1`` and ``x2`` (see :ref:`broadcasting`). | ||
| 179 | 179 | x1: array | |
| 180 | 180 | first input array. Must be compatible with ``condition`` and ``x2`` (see :ref:`broadcasting`). | |
| 181 | 181 | x2: array | |
| Back | FazBrowse Home | New Git URL |
0 commit comments