1.. module:: numpy.matlib 2 3Matrix library (:mod:`numpy.matlib`) 4************************************ 5 6.. currentmodule:: numpy 7 8This module contains all functions in the :mod:`numpy` namespace, with 9the following replacement functions that return :class:`matrices 10<matrix>` instead of :class:`ndarrays <ndarray>`. 11 12.. currentmodule:: numpy 13 14Functions that are also in the numpy namespace and return matrices 15 16.. autosummary:: 17 18 mat 19 matrix 20 asmatrix 21 bmat 22 23 24Replacement functions in `matlib` 25 26.. currentmodule:: numpy.matlib 27 28.. autosummary:: 29 :toctree: generated/ 30 31 empty 32 zeros 33 ones 34 eye 35 identity 36 repmat 37 rand 38 randn 39