About 14,900 results
Open links in new tab
  1. numpy.ndarray.flatten — NumPy v2.4 Manual

    ‘F’ means to flatten in column-major (Fortran- style) order. ‘A’ means to flatten in column-major order if a is Fortran contiguous in memory, row-major order otherwise.

  2. Flatten — PyTorch 2.10 documentation

    start_dim (int) – first dim to flatten (default = 1). end_dim (int) – last dim to flatten (default = -1). Returns the extra representation of the module. Runs the forward pass.

  3. Numpy ndarray.flatten() function in Python - GeeksforGeeks

    Jul 12, 2025 · The flatten () function is used to convert a multi-dimensional NumPy array into a one-dimensional array. It creates a new copy of the data so that original array stays unchanged.

  4. NumPy flatten () - Python Tutorial

    In this tutorial, you'll learn how to use the numpy flatten () method to return a copy of an array collapsed into one dimension.

  5. Understanding the `.flatten()` Method in Python - codegenes.net

    Nov 14, 2025 · The .flatten() method in Python's NumPy library is a powerful tool for converting multi-dimensional arrays into one-dimensional arrays. It simplifies data processing, especially in data …

  6. FLATTEN Definition & Meaning - Merriam-Webster

    The meaning of FLATTEN is to make flat. How to use flatten in a sentence.

  7. Python:NumPy | ndarray | .flatten() | Codecademy

    Jul 8, 2024 · The .flatten() method converts a multi-dimensional NumPy array into a one-dimensional array. This method creates a copy of the original array with all elements arranged in a …

  8. NumPy flatten () - Programiz

    flatten () Return Value The flatten() method returns the flattened one-dimensional array.

  9. NumPy ndarray.flatten () Method: Flatten to 1D Array - Tutorial Kart

    The numpy.ndarray.flatten () method returns a copy of the original array collapsed into a one-dimensional array. Syntax and examples are covered in this tutorial.

  10. NumPy: Flatten an array with ravel() and flatten() | note.nkmk.me

    Feb 2, 2024 · Specifying an ndarray as the first argument to np.ravel() returns a flattened ndarray. The argument can be any array-like object, including Python's built-in list type. The return value is always …