bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / matrixlib / defmatrix / matrix / A
function
numpy.matrixlib.defmatrix:matrix.A
source: build-install/usr/lib/python3.14/site-packages/numpy/matrixlib/defmatrix.py:845
Signature
def A(self)Summary
Return self as an ndarray object.
Extended Summary
Equivalent to np.asarray(self).
Parameters
None
Returns
ret: ndarrayselfas an ndarray
Examples
x = np.matrix(np.arange(12).reshape((3,4))); x x.getA()✓
array([[ 0, 1, 2, 3],
[ 4, 5, 6, 7],
[ 8, 9, 10, 11]])
Aliases
numpy.matrix.getA