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. 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. How to vectorize with gcc? - Stack Overflow

    Jan 3, 2009 · 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. 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. How do I vectorize a function with Numba, when the function takes ...

    Jul 17, 2018 · I'd like to use Numba to vectorize a function that will evaluate each row of a matrix. This would essentially apply a Numpy ufunc to the matrix, as opposed to looping over the rows. According …

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

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

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

  10. vectorization - vectorize.upstream_error - failed to parse upsert ...

    Dec 12, 2024 · 1 I am trying to upsert a vector in my cloudflare vectorize index For now I am testing from my terminal using cURL Call I am making is this: