/usr/local/lib64/python3.6/site-packages/numpy/matrixlib/__pycache__
Edit: /usr/local/lib64/python3.6/site-packages/numpy/matrixlib/__pycache__/defmatrix.cpython-36.pyc (30026B)
3
Egw @ s d dddgZ ddlZddlZddlZddljjZddlmZm Z ddl
mZ ddlm
Z
d d
ZeddddZedG d
d d ejZdd ZeddddZeZdS )matrixbmatmatasmatrix N)concatenateisscalar)
set_module)matrix_powerc C s xdD ]}| j |d} qW | jd}g }d}xz|D ]r}|jd}g }x&|D ]}|j } |jttj| qJW |dkr~t|}
nt||
krtd|d7 }|j| q2W |S )Nz[] ;r ,zRows not the same size. ) replacesplitextendmapastliteral_evallen
ValueErrorappend)datacharrowsnewdatacountrowtrownewrowcoltempZNcols r! E/usr/local/lib64/python3.6/site-packages/numpy/matrixlib/defmatrix.py_convert_from_string s$
r# Znumpyc C s t | |ddS )a@
Interpret the input as a matrix.
Unlike `matrix`, `asmatrix` does not make a copy if the input is already
a matrix or an ndarray. Equivalent to ``matrix(data, copy=False)``.
Parameters
----------
data : array_like
Input data.
dtype : data-type
Data-type of the output matrix.
Returns
-------
mat : matrix
`data` interpreted as a matrix.
Examples
--------
>>> x = np.array([[1, 2], [3, 4]])
>>> m = np.asmatrix(x)
>>> x[0,0] = 5
>>> m
matrix([[5, 2],
[3, 4]])
F)dtypecopy)r )r r$ r! r! r" r $ s !c @ sf e Zd ZdZdZdGddZdd Zd d
Zdd Zd
d Z dd Z
dd Zdd Zdd Z
dd Zdd Zdd ZdHddZdIdd ZdJd"d#ZdKd$d%ZdLd'd(ZdMd)d*ZdNd+d,ZdOd-d.ZdPd/d0ZdQd1d2ZdRd3d4ZdSd5d6ZdTd7d8ZdUd9d:Zed;d<