Top "Vectorization" questions

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

How to vectorize this python code?

I am trying to use NumPy and vectorization operations to make a section of code run faster. I appear to …

python numpy vectorization
Is there a vectorized parallel max() and min()?

I have a data.frame with columns "a" and "b". I want to add columns called "high" and "low" that …

r parallel-processing vectorization max minimum
Finding islands of zeros in a sequence

Imagine you have a very long sequence. What is the most efficient way of finding the intervals where the sequence …

matlab vectorization
How to vectorize R strsplit?

When creating functions that use strsplit, vector inputs do not behave as desired, and sapply needs to be used. This …

r vectorization strsplit
Subtracting numpy arrays of different shape efficiently

Using the excellent broadcasting rules of numpy you can subtract a shape (3,) array v from a shape (5,3) array X with …

python arrays numpy vectorization array-broadcasting
Apply plot properties to all MATLAB subplots simultaneously

I would like to create a figure, and once subplots have been created, I would like to apply properties to …

matlab plot vectorization subplot
How can I disable vectorization while using GCC?

I am compiling my code using following command: gcc -O3 -ftree-vectorizer-verbose=6 -msse4.1 -ffast-math With this all the optimizations are enabled. …

gcc vectorization sse simd auto-vectorization
Efficiently rotate a set of points with a rotation matrix in numpy

I have a list of 3D points stored in numpy array A with shape (N,3) and a rotation matrix R …

python numpy rotation vectorization
AVX2 what is the most efficient way to pack left based on a mask?

If you have an input array, and an output array, but you only want to write those elements which pass …

c++ vectorization sse simd avx2
How to properly Multithread in OpenCV in 2019?

Background: I read some articles and posts regarding Multithreading in OpenCV: On the one hand you can build OpenCV with …

c++ multithreading performance opencv vectorization