Top "Vectorization" questions

Vectorization refers to a programming paradigm where functions operate on whole arrays in one go.

Using Numpy Vectorize on Functions that Return Vectors

numpy.vectorize takes a function f:a->b and turns it into g:a[]->b[]. This works …

python arrays numpy vectorization
Direction of two points

Some high school math concept has been forgotten, so I ask here. If I have two points p1(x1,y1), …

math vector vector-graphics vectorization
Numpy equivalent of if/else without loop

is there any pythonic way to remove for loop and if/else in the code below. this code iterating over …

python numpy vectorization
NumPy version of "Exponential weighted moving average", equivalent to pandas.ewm().mean()

How do I get the exponential weighted moving average in NumPy just like the following in pandas? import pandas as …

python pandas numpy vectorization smoothing
Why can't R's ifelse statements return vectors?

I've found R's ifelse statements to be pretty handy from time to time. For example: ifelse(TRUE,1,2) # [1] 1 ifelse(FALSE,1,2) # [1] 2 But …

r if-statement vectorization r-faq
Vectorized way of calculating row-wise dot product two matrices with Scipy

I want to calculate the row-wise dot product of two matrices of the same dimension as fast as possible. This …

numpy scipy vectorization matrix-multiplication dot-product
What is vectorization?

What does it mean to vectorize for-loops in Python? Is there another way to write nested for-loops? I am new …

python python-3.x numpy vectorization
MATLAB: comparison of cell arrays of string

I have two cell arrays of strings, and I want to check if they contain the same strings (they do …

matlab string comparison vectorization cell-array
Do any JVM's JIT compilers generate code that uses vectorized floating point instructions?

Let's say the bottleneck of my Java program really is some tight loops to compute a bunch of vector dot …

java floating-point jit sse vectorization
Intel SSE and AVX Examples and Tutorials

Is there any good C/C++ tutorials or examples for learning Intel SSE and AVX instructions? I found few on …

intel sse vectorization avx