About 5,050,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

    Using Numpy Vectorize on Functions that Return Vectors Asked 15 years, 4 months ago Modified 2 years, 11 months ago Viewed 125k times

  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. python - Performance of Pandas apply vs np.vectorize to create new ...

    Oct 6, 2018 · I am using Pandas dataframes and want to create a new column as a function of existing columns. I have not seen a good discussion of the speed difference between df.apply() and …

  6. How to vectorize with gcc? - Stack Overflow

    Apr 4, 2020 · The v4 series of the gcc compiler can automatically vectorize loops using the SIMD processor on some modern CPUs, such as the AMD Athlon or Intel Pentium/Core chips. How is this …

  7. 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, …

  8. How to define a vectorized function in R - Stack Overflow

    Sep 13, 2017 · As the title, I'd like to know how to define a vectorized function in R. Is it just by using a loop in the function? Is this method efficient? And what's the best practice ?

  9. 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...

  10. compiler optimization - GCC Auto Vectorization - Stack Overflow

    Jul 8, 2018 · You could actually get decent auto vectorization with -ftree-vectorize combined with -O1, for example: Godbolt. With -O0, however, vectorized code won't be generated, even for very simple …