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

Method __init__

numpy/core/tests/test_multiarray.py:6598–6601  ·  view source on GitHub ↗
(self, sequence=None)

Source from the content-addressed store, hash-verified

6596 def test_vecobject(self):
6597 class Vec:
6598 def __init__(self, sequence=None):
6599 if sequence is None:
6600 sequence = []
6601 self.array = np.array(sequence)
6602
6603 def __add__(self, other):
6604 out = Vec()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected