(self)
| 129 | assert_(isinstance(ma + na, MaskedArray)) |
| 130 | |
| 131 | def test_testUfuncs1(self): |
| 132 | # Test various functions such as sin, cos. |
| 133 | (x, y, a10, m1, m2, xm, ym, z, zm, xf, s) = self.d |
| 134 | assert_(eq(np.cos(x), cos(xm))) |
| 135 | assert_(eq(np.cosh(x), cosh(xm))) |
| 136 | assert_(eq(np.sin(x), sin(xm))) |
| 137 | assert_(eq(np.sinh(x), sinh(xm))) |
| 138 | assert_(eq(np.tan(x), tan(xm))) |
| 139 | assert_(eq(np.tanh(x), tanh(xm))) |
| 140 | with np.errstate(divide='ignore', invalid='ignore'): |
| 141 | assert_(eq(np.sqrt(abs(x)), sqrt(xm))) |
| 142 | assert_(eq(np.log(abs(x)), log(xm))) |
| 143 | assert_(eq(np.log10(abs(x)), log10(xm))) |
| 144 | assert_(eq(np.exp(x), exp(xm))) |
| 145 | assert_(eq(np.arcsin(z), arcsin(zm))) |
| 146 | assert_(eq(np.arccos(z), arccos(zm))) |
| 147 | assert_(eq(np.arctan(z), arctan(zm))) |
| 148 | assert_(eq(np.arctan2(x, y), arctan2(xm, ym))) |
| 149 | assert_(eq(np.absolute(x), absolute(xm))) |
| 150 | assert_(eq(np.equal(x, y), equal(xm, ym))) |
| 151 | assert_(eq(np.not_equal(x, y), not_equal(xm, ym))) |
| 152 | assert_(eq(np.less(x, y), less(xm, ym))) |
| 153 | assert_(eq(np.greater(x, y), greater(xm, ym))) |
| 154 | assert_(eq(np.less_equal(x, y), less_equal(xm, ym))) |
| 155 | assert_(eq(np.greater_equal(x, y), greater_equal(xm, ym))) |
| 156 | assert_(eq(np.conjugate(x), conjugate(xm))) |
| 157 | assert_(eq(np.concatenate((x, y)), concatenate((xm, ym)))) |
| 158 | assert_(eq(np.concatenate((x, y)), concatenate((x, y)))) |
| 159 | assert_(eq(np.concatenate((x, y)), concatenate((xm, y)))) |
| 160 | assert_(eq(np.concatenate((x, y, x)), concatenate((x, ym, x)))) |
| 161 | |
| 162 | def test_xtestCount(self): |
| 163 | # Test count |
nothing calls this directly
no test coverage detected