This is a pre-release version (latest).Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy latest / numpy / matrixlib / defmatrix / matrix / _collapse

function

numpy.matrixlib.defmatrix:matrix._collapse

source: build-install/usr/lib/python3.14/site-packages/numpy/matrixlib/defmatrix.py:261

Signature

def _collapse(self, axis)

Summary

A convenience function for operations that want to collapse to a scalar like _align, but are using keepdims=True

Aliases

  • numpy.matrix._collapse