(this docstring should be overwritten)
(self, offset=0, axis1=0, axis2=1, dtype=None, out=None)
| 5146 | return np.asarray(self.filled(0)).nonzero() |
| 5147 | |
| 5148 | def trace(self, offset=0, axis1=0, axis2=1, dtype=None, out=None): |
| 5149 | """ |
| 5150 | (this docstring should be overwritten) |
| 5151 | """ |
| 5152 | # !!!: implement out + test! |
| 5153 | m = self._mask |
| 5154 | if m is nomask: |
| 5155 | result = super().trace(offset=offset, axis1=axis1, axis2=axis2, |
| 5156 | out=out) |
| 5157 | return result.astype(dtype) |
| 5158 | else: |
| 5159 | D = self.diagonal(offset=offset, axis1=axis1, axis2=axis2) |
| 5160 | return D.astype(dtype).filled(0).sum(axis=-1, out=out) |
| 5161 | trace.__doc__ = ndarray.trace.__doc__ |
| 5162 | |
| 5163 | def dot(self, b, out=None, strict=False): |