(cls, arr)
| 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' |