bundles / numpy 2.4.4 / numpy / matrixlib / defmatrix / matrix / A
function
numpy.matrixlib.defmatrix:matrix.A
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