MCPcopy Index your code
hub / github.com/numpy/numpy / test_array

Method test_array

numpy/lib/tests/test_io.py:144–158  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

142 self.roundtrip(np.asfortranarray(a)[1:], file_on_disk=True)
143
144 def test_array(self):
145 a = np.array([], float)
146 self.check_roundtrips(a)
147
148 a = np.array([[1, 2], [3, 4]], float)
149 self.check_roundtrips(a)
150
151 a = np.array([[1, 2], [3, 4]], int)
152 self.check_roundtrips(a)
153
154 a = np.array([[1 + 5j, 2 + 6j], [3 + 7j, 4 + 8j]], dtype=np.csingle)
155 self.check_roundtrips(a)
156
157 a = np.array([[1 + 5j, 2 + 6j], [3 + 7j, 4 + 8j]], dtype=np.cdouble)
158 self.check_roundtrips(a)
159
160 def test_array_object(self):
161 a = np.array([], object)

Callers

nothing calls this directly

Calls 1

check_roundtripsMethod · 0.95

Tested by

no test coverage detected