Professional Documents
Culture Documents
html)
Scipy.org (http://scipy.org/)
Docs (http://docs.scipy.org/)
index (../../genindex.html)
next (numpy.matrix.all.html)
previous (numpy.broadcast.reset.html)
numpy.matrix
class numpy.matrix
(http://github.com/numpy/numpy/blob/v1.9.1/numpy/matrixlib/defmatrix.py#L206)
[source]
Returns a matrix from an array-like object, or from a string of data. A matrix is a specialized 2-D array that
retains its 2-D nature through operations. It has certain special operators, such as * (matrix multiplication)
and ** (matrix power).
Parameters:
See also:
array (numpy.array.html#numpy.array)
Examples
>>> a = np.matrix('1 2; 3 4')
>>>
>>> print a
[[1 2]
[3 4]]
>>>
matrix([[1, 2],
[3, 4]])
Methods
all (numpy.matrix.all.html#numpy.matrix.all)([axis, out])
argpartition (numpy.matrix.argpartition.html#numpy.matrix.argpartition)
(kth[, axis, kind, order])
astype (numpy.matrix.astype.html#numpy.matrix.astype)
(dtype[, order, casting, subok, copy])
byteswap (numpy.matrix.byteswap.html#numpy.matrix.byteswap)(inplace)
compress (numpy.matrix.compress.html#numpy.matrix.compress)
(condition[, axis, out])
conj (numpy.matrix.conj.html#numpy.matrix.conj)()
conjugate (numpy.matrix.conjugate.html#numpy.matrix.conjugate)()
copy (numpy.matrix.copy.html#numpy.matrix.copy)([order])
dump (numpy.matrix.dump.html#numpy.matrix.dump)(file)
dumps (numpy.matrix.dumps.html#numpy.matrix.dumps)()
fill (numpy.matrix.fill.html#numpy.matrix.fill)(value)
flatten (numpy.matrix.flatten.html#numpy.matrix.flatten)([order])
getA (numpy.matrix.getA.html#numpy.matrix.getA)()
getA1 (numpy.matrix.getA1.html#numpy.matrix.getA1)()
getH (numpy.matrix.getH.html#numpy.matrix.getH)()
getI (numpy.matrix.getI.html#numpy.matrix.getI)()
getT (numpy.matrix.getT.html#numpy.matrix.getT)()
item (numpy.matrix.item.html#numpy.matrix.item)(*args)
itemset (numpy.matrix.itemset.html#numpy.matrix.itemset)(*args)
newbyteorder (numpy.matrix.newbyteorder.html#numpy.matrix.newbyteorder)
([new_order])
nonzero (numpy.matrix.nonzero.html#numpy.matrix.nonzero)()
WebSpades Ads
(http://www.webspades.info/review#ata)
ravel (numpy.matrix.ravel.html#numpy.matrix.ravel)([order])
Trust
Ratingrounded to
Return a with each
element
the given number of decimals.
searchsorted (numpy.matrix.searchsorted.html#numpy.matrix.searchsorted)
(v[, side, sorter])
squeeze (numpy.matrix.squeeze.html#numpy.matrix.squeeze)([axis])
tobytes (numpy.matrix.tobytes.html#numpy.matrix.tobytes)([order])
tolist (numpy.matrix.tolist.html#numpy.matrix.tolist)()
tostring (numpy.matrix.tostring.html#numpy.matrix.tostring)([order])
transpose (numpy.matrix.transpose.html#numpy.matrix.transpose)(*axes)
Previous topic
numpy.broadcast.reset (numpy.broadcast.reset.html)
Next topic
numpy.matrix.all (numpy.matrix.all.html)
94%