numpy.matrix — NumPy v1.23 Manual
numpy.org › reference › generatedA 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 dataarray_like or string If data is a string, it is interpreted as a matrix with commas or spaces separating columns, and semicolons separating rows. dtypedata-type
numpy.matrix.shape — NumPy v1.14 Manual - SciPy
docs.scipy.org › generated › numpyJan 08, 2018 · The shape property is usually used to get the current shape of an array, but may also be used to reshape the array in-place by assigning a tuple of array dimensions to it. As with numpy.reshape, one of the new shape dimensions can be -1, in which case its value is inferred from the size of the array and the remaining dimensions.
numpy.matrix.reshape — NumPy v1.23 Manual
numpy.org › generated › numpymatrix.reshape(shape, order='C') # Returns an array containing the same data with a new shape. Refer to numpy.reshape for full documentation. See also numpy.reshape equivalent function Notes Unlike the free function numpy.reshape, this method on ndarray allows the elements of the shape parameter to be passed in as separate arguments.
numpy.matrix.shape — NumPy v1.23 Manual
numpy.org › generated › numpynumpy.matrix.shape. #. attribute. matrix.shape #. Tuple of array dimensions. The shape property is usually used to get the current shape of an array, but may also be used to reshape the array in-place by assigning a tuple of array dimensions to it. As with numpy.reshape, one of the new shape dimensions can be -1, in which case its value is inferred from the size of the array and the remaining dimensions.
numpy.matrix.shape — NumPy v1.24.dev0 Manual
numpy.org › generated › numpynumpy.matrix.shape. #. attribute. matrix.shape #. Tuple of array dimensions. The shape property is usually used to get the current shape of an array, but may also be used to reshape the array in-place by assigning a tuple of array dimensions to it. As with numpy.reshape, one of the new shape dimensions can be -1, in which case its value is inferred from the size of the array and the remaining dimensions.