MCPcopy Create free account
hub / github.com/numpy/numpy / testConstructor2

Method testConstructor2

tools/swig/test/testArray.py:284–288  ·  view source on GitHub ↗

Test ArrayZ array constructor

(self)

Source from the content-addressed store, hash-verified

282 self.assertTrue(isinstance(self.array3, Array.ArrayZ))
283
284 def testConstructor2(self):
285 "Test ArrayZ array constructor"
286 na = np.arange(self.length, dtype=np.complex128)
287 aa = Array.ArrayZ(na)
288 self.assertTrue(isinstance(aa, Array.ArrayZ))
289
290 def testConstructor3(self):
291 "Test ArrayZ copy constructor"

Callers

nothing calls this directly

Calls 1

ArrayZMethod · 0.80

Tested by

no test coverage detected