Search
Search Results
Search finished, found 11 page(s) matching the search query.
- numpy.asmatrix
...NumPy reference Array objects Standard array subclasses numpy.asmatrix...
- numpy.asmatrix (Python function, in numpy.asmatrix)
- NumPy 1.7.0 Release Notes
...we have a mix of ndarray and matrix objects which are all views on the same original ndarray: a = np.arange(10) b = np.asmatrix(a) c = b[0, 1:] d = c[0, 1:] then d.base will be b. This is because d is a matrix object, and so the collapsi...
- NumPy 2.0 migration guide
..., np.generic) instead. issubclass_ Use issubclass builtin instead. issubsctype Use np.issubdtype instead. mat Use np.asmatrix instead. maximum_sctype Use a specific dtype instead. You should avoid relying on any implicit mechanism and s...
- NumPy 2.0.0 Release Notes
...removed. Use np.nan instead. Alias np.infty has been removed. Use np.inf instead. Alias np.mat has been removed. Use np.asmatrix instead. np.issubclass_ has been removed. Use the issubclass builtin instead. np.asfarray has been removed. Use...
- numpy.array
...=[('a','<i4'),('b','<i4')]) >>> x['a'] array([1, 3], dtype=int32) Creating an array from sub-classes: >>> np.array(np.asmatrix('1 2; 3 4')) array([[1, 2], [3, 4]]) >>> np.array(np.asmatrix('1 2; 3 4'), subok=True) matrix([[1, 2],...
- numpy.asmatrix
...NumPy reference Array objects Standard array subclasses numpy.asmatrix...
- numpy.bmat
...ralization of this function for N-d arrays, that returns normal ndarrays. Examples >>> import numpy as np >>> A = np.asmatrix('1 1; 1 1') >>> B = np.asmatrix('2 2; 2 2') >>> C = np.asmatrix('3 4; 5 6') >>> D = np.asmatrix('7 8; 9 0') A...
- numpy.matlib.repmat
...ange(4) >>> np.matlib.repmat(a1, 2, 2) array([[0, 1, 2, 3, 0, 1, 2, 3], [0, 1, 2, 3, 0, 1, 2, 3]]) >>> a2 = np.asmatrix(np.arange(6).reshape(2, 3)) >>> np.matlib.repmat(a2, 2, 3) matrix([[0, 1, 2, 0, 1, 2, 0, 1, 2], [3, 4,...
- numpy.matrix.sum
...'float') matrix([[3.], [7.]]) >>> out = np.zeros((2, 1), dtype='float') >>> x.sum(axis=1, dtype='float', out=np.asmatrix(out)) matrix([[3.], [7.]])...
- Standard array subclasses
...“matrix “in NumPy. matrix(data[, dtype, copy]) Returns a matrix from an array-like object, or from a string of data. asmatrix(data[, dtype]) Interpret the input as a matrix. bmat(obj[, ldict, gdict]) Build a matrix object from a string,...