About 4,810,000 results
Open links in new tab
  1. python - How to use np.vectorize? - Stack Overflow

    Feb 13, 2021 · Isn't the answer to How to use np.vectorize? usually "Don't. It just pretends to be a vectorized function but is just a loop with a different name"?

  2. Using Numpy Vectorize on Functions that Return Vectors

    The purpose of np.vectorize is to transform functions which are not numpy-aware (e.g. take floats as input and return floats as output) into functions that can operate on (and return) numpy arrays.

  3. simd - What is "vectorization"? - Stack Overflow

    Sep 14, 2009 · Many CPUs have "vector" or "SIMD" instruction sets which apply the same operation simultaneously to two, four, or more pieces of data. Modern x86 chips have the SSE instructions, …

  4. Is `-ftree-loop-vectorize` not enabled by `-O2` in GCC v12?

    Dec 23, 2022 · SIMD, Vectorize. is enabled by -o2, loop unrolling makes the code much larger so it is a separate flag in -o2 and included in -o3. many times -o2 will out-perform -o3.

  5. 0-dimensional array problems with `numpy.vectorize`

    Feb 18, 2025 · 2 numpy.vectorize conveniently converts a scalar function to vectorized functions that can be applied directly to arrays. However, when inputting a single value into the vectorized function, …

  6. c++ - What does vectorization mean? - Stack Overflow

    Oct 4, 2009 · Is it a good idea to vectorize the code? What are good practices in terms of when to do it? What happens underneath?

  7. No deployments available with an embedding model

    Jul 19, 2024 · I am trying to Import and vectorize data from Azure Blob Storage to Azure AI Search. I have two embedding models deployed in Azure AI Studio - text-embedding-3-small and text …

  8. c++ - tree vectorization: gcc optimization flag - Stack Overflow

    Mar 10, 2016 · I have noticed that the gcc flag -ftree-vectorize is very useful for optimizing code. I am trying to understand better how it works, but the doc is fairly concise: Perform vectorization on trees...

  9. python - Numpy vectorize with signature - Stack Overflow

    Sep 5, 2023 · By default vectorize passes scalar arguments to your function, and expects a scalar (read about otypes). signature lets you pass subarrays, with the symbols determining the number of …

  10. python - Performance of Pandas apply vs np.vectorize to create new ...

    Oct 6, 2018 · np.vectorize, list comprehension + zip and map methods, i.e. the top 3, all have roughly the same performance. This is because they use tuple and bypass some Pandas overhead from …