About 50 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. How to vectorize operations in pandas data frame? - Stack Overflow

    Dec 29, 2023 · How to vectorize operations in pandas data frame? Ask Question Asked 2 years, 1 month ago Modified 2 years, 1 month ago

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

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

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

  6. Is it possible to numpy.vectorize an instance method?

    Feb 26, 2018 · The decorator version @vectorize is harder to apply than the function version. Your method f takes two arguments, self and x. vectorize isn't smart enough to assign Dummy() to self, …

  7. Using Numpy Vectorize on Functions that Return Vectors

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

  8. Fully convert a black and white image to a set of lines (aka vectorize ...

    Oct 11, 2019 · In other words I'm trying to vectorize the image to a set of lines. I have already looked at the HoughLinesTransform, however this does not cover every part of the image and is more about …

  9. Correct way to use np.vectorize to apply functions to all columns in ...

    Jun 6, 2021 · The correct way to use np.vectorize is to not use it - unless you are dealing with a function that only accepts scalar values, and you don't care about speed. When ever I've tested it, explicit …

  10. NumPy vectorization without the use of numpy.vectorize

    Apr 18, 2022 · The vectorize function is provided primarily for convenience, not for performance. The implementation is essentially a for loop. Remember: the documentation is an API reference guide …