About 1,920,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. 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?

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

    Aug 11, 2021 · 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. 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 …

  5. Most efficient way to map function over numpy array

    Feb 5, 2016 · What is the most efficient way to map a function over a numpy array? I am currently doing: import numpy as np x = np.array ( [1, 2, 3, 4, 5]) # Obtain array of square ...

  6. 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 ?

  7. How can I vectorize an image using Python? - Stack Overflow

    Dec 15, 2021 · How can I convert an image to a vectorised form? Normal image: Vectorised Image: I implemented image segmentation using the SLIC method. The result is close to the desired outcome …

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

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