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

Method makemat

numpy/ma/extras.py:1621–1627  ·  view source on GitHub ↗
(cls, arr)

Source from the content-addressed store, hash-verified

1619
1620 @classmethod
1621 def makemat(cls, arr):
1622 # There used to be a view as np.matrix here, but we may eventually
1623 # deprecate that class. In preparation, we use the unmasked version
1624 # to construct the matrix (with copy=False for backwards compatibility
1625 # with the .view)
1626 data = super().makemat(arr.data, copy=False)
1627 return array(data, mask=arr.mask)
1628
1629 def __getitem__(self, key):
1630 # matrix builder syntax, like 'a, b; c, d'

Callers 1

__getitem__Method · 0.80

Calls 1

arrayFunction · 0.70

Tested by

no test coverage detected