()
| 242 | |
| 243 | |
| 244 | def test_trapz_matrix(): |
| 245 | # Test to make sure matrices give the same answer as ndarrays |
| 246 | # 2018-04-29: moved here from core.tests.test_function_base. |
| 247 | x = np.linspace(0, 5) |
| 248 | y = x * x |
| 249 | r = np.trapz(y, x) |
| 250 | mx = np.matrix(x) |
| 251 | my = np.matrix(y) |
| 252 | mr = np.trapz(my, mx) |
| 253 | assert_almost_equal(mr, r) |
| 254 | |
| 255 | |
| 256 | def test_ediff1d_matrix(): |
nothing calls this directly
no test coverage detected