Top "Vectorization" questions

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

Submatrices and indices using Eigen

I'm currently working on a MATLAB project and I'd like to re-implement the most computational-heavy parts using C++ and Eigen. …

c++ vectorization eigen submatrix
Convert raster images to vector graphics using OpenCV?

I'm looking for a possibility to convert raster images to vector data using OpenCV. There I found a function cv::…

opencv vectorization noise-reduction error-suppression
What is vector in terms of machine learning

I want to understand what is a vector in terms of machine learning. I looked into the below 2 links: https://…

vector machine-learning svm vectorization
How to invert a permutation array in numpy

Given a self-indexing (not sure if this is the correct term) numpy array, for example: a = np.array([3, 2, 0, 1]) This represents …

python algorithm numpy vectorization
User Warning: Your stop_words may be inconsistent with your preprocessing

I am following this document clustering tutorial. As an input I give a txt file which can be downloaded here. …

vectorization text-processing tf-idf stop-words stemming
Explain the speed difference between numpy's vectorized function application VS python's for loop

I was implementing a weighting system called TF-IDF on a set of 42000 images, each consisting 784 pixels. This is basically a 42000 …

python performance loops numpy vectorization
Preventing GCC from automatically using AVX and FMA instructions when compiled with -mavx and -mfma

How can I disable auto-vectorization with AVX and FMA instructions? I would still prefer the compiler to employ SSE and …

c++ gcc vectorization avx fma
Speed up float 5x5 matrix * vector multiplication with SSE

I need to run a matrix-vector multiplication 240000 times per second. The matrix is 5x5 and is always the same, whereas …

c++ vectorization matrix-multiplication sse simd
Taking subarrays from numpy array with given stride/stepsize

Lets say I have a Python Numpy array a. a = numpy.array([1,2,3,4,5,6,7,8,9,10,11]) I want to create a matrix of sub …

python numpy vectorization
Python vectorizing nested for loops

I'd appreciate some help in finding and understanding a pythonic way to optimize the following array manipulations in nested for …

python numpy for-loop optimization vectorization