About 73,300 results
Open links in new tab
  1. python - Numpy array dimensions - Stack Overflow

    Jun 17, 2010 · The number of axes is rank. In [3]: a.ndim # num of dimensions/axes, *Mathematics definition of dimension* Out[3]: 2 axis/axes the nth coordinate to index an array …

  2. Find the dimensions of a multidimensional Python array

    Jul 8, 2013 · In Python, is it possible to write a function that returns the dimensions of a multidimensional array (given the assumption that the array's dimensions are not jagged)? For …

  3. How to check dimensions of a numpy array? - Stack Overflow

    Sep 7, 2017 · How to check dimensions of a numpy array? Asked 7 years, 9 months ago Modified 5 years, 11 months ago Viewed 25k times

  4. In Python NumPy what is a dimension and axis? - Stack Overflow

    x = np.array([0,3,4,5,8]) Now x is a vector hence a rank-1 tensor. But the vector itself is 5-dimensional. In numpy rank=dimension=axis. There is a slight deviation from the conventional …

  5. How do I find the length (or dimensions, size) of a numpy matrix …

    Feb 27, 2014 · Thanks for pointing me to that question! I did try searching, but "numpy matrix dimensions" (or length or size for that matter) didn't result in anything useful. I read numpy …

  6. Initialising an array of fixed size in Python - Stack Overflow

    Initialising an array of fixed size in Python [duplicate] Asked 14 years, 2 months ago Modified 2 years, 5 months ago Viewed 1.1m times

  7. Python array dimensions - Stack Overflow

    Jul 5, 2017 · I'm currently learning numpy and I find 'Array Dimensions' . Can anyone explain to me what are array dimensions ? How to find out the dimensions of an array ? Thank you ,

  8. Python: slicing a multi-dimensional array - Stack Overflow

    Feb 27, 2023 · If not, you can read below. The problem: Multidimensional lists in Python can have inconsistent types or dimensions, making conversion to a NumPy array impossible. For …

  9. python - Explaining the differences between dim, shape, rank, …

    Mar 1, 2014 · I'm new to python and numpy in general. I read several tutorials and still so confused between the differences in dim, ranks, shape, aixes and dimensions. My mind …

  10. python - How to define a two-dimensional array? - Stack Overflow

    Jul 12, 2011 · I want to define a two-dimensional array without an initialized length like this: Matrix = [][] But this gives an error: IndexError: list index out of range