(self)
| 191 | assert_(isinstance(ma + na, MaskedArray)) |
| 192 | |
| 193 | def test_testUfuncs1(self): |
| 194 | # Test various functions such as sin, cos. |
| 195 | x, y, _, _, _, xm, ym, z, zm, _, _ = self._create_data() |
| 196 | assert_(eq(np.cos(x), cos(xm))) |
| 197 | assert_(eq(np.cosh(x), cosh(xm))) |
| 198 | assert_(eq(np.sin(x), sin(xm))) |
| 199 | assert_(eq(np.sinh(x), sinh(xm))) |
| 200 | assert_(eq(np.tan(x), tan(xm))) |
| 201 | assert_(eq(np.tanh(x), tanh(xm))) |
| 202 | with np.errstate(divide='ignore', invalid='ignore'): |
| 203 | assert_(eq(np.sqrt(abs(x)), sqrt(xm))) |
| 204 | assert_(eq(np.log(abs(x)), log(xm))) |
| 205 | assert_(eq(np.log10(abs(x)), log10(xm))) |
| 206 | assert_(eq(np.exp(x), exp(xm))) |
| 207 | assert_(eq(np.arcsin(z), arcsin(zm))) |
| 208 | assert_(eq(np.arccos(z), arccos(zm))) |
| 209 | assert_(eq(np.arctan(z), arctan(zm))) |
| 210 | assert_(eq(np.arctan2(x, y), arctan2(xm, ym))) |
| 211 | assert_(eq(np.absolute(x), absolute(xm))) |
| 212 | assert_(eq(np.equal(x, y), equal(xm, ym))) |
| 213 | assert_(eq(np.not_equal(x, y), not_equal(xm, ym))) |
| 214 | assert_(eq(np.less(x, y), less(xm, ym))) |
| 215 | assert_(eq(np.greater(x, y), greater(xm, ym))) |
| 216 | assert_(eq(np.less_equal(x, y), less_equal(xm, ym))) |
| 217 | assert_(eq(np.greater_equal(x, y), greater_equal(xm, ym))) |
| 218 | assert_(eq(np.conjugate(x), conjugate(xm))) |
| 219 | assert_(eq(np.concatenate((x, y)), concatenate((xm, ym)))) |
| 220 | assert_(eq(np.concatenate((x, y)), concatenate((x, y)))) |
| 221 | assert_(eq(np.concatenate((x, y)), concatenate((xm, y)))) |
| 222 | assert_(eq(np.concatenate((x, y, x)), concatenate((x, ym, x)))) |
| 223 | |
| 224 | def test_xtestCount(self): |
| 225 | # Test count |
nothing calls this directly
no test coverage detected