Top "Vectorization" questions

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

vectorize conditional assignment in pandas dataframe

If I have a dataframe df with column x and want to create column y based on values of x …

python numpy pandas vectorization
How can I convert a vector to a cell array?

I have a column vector I want to convert to a cell array such as: A = rand(10,1); B = cell(10,1); for …

matlab vectorization
How to Calculate single-vector Dot Product using SSE intrinsic functions in C

I am trying to multiply two vectors together where each element of one vector is multiplied by the element in …

c optimization vectorization sse simd
What does vectorization mean?

Is it a good idea to vectorize the code? What are good practices in terms of when to do it? …

c++ c gcc compiler-construction vectorization
Multiply a 3D matrix with a 2D matrix

Suppose I have an AxBxC matrix X and a BxD matrix Y. Is there a non-loop method by which I …

matlab matrix vectorization matrix-multiplication
python numpy ndarray element-wise mean

I'd like to calculate element-wise average of numpy ndarray. In [56]: a = np.array([10, 20, 30]) In [57]: b = np.array([30, 20, 20]) In [58]: c = np.…

python numpy vectorization
Vector norm of an array of vectors in MATLAB

When calling norm on a matrix in MATLAB, it returns what's known as a "matrix norm" (a scalar value), instead …

arrays matlab matrix vectorization normalization
Fast way of getting index of match in list

Given a list a containing vectors of unequal length and a vector b containing some elements from the vectors in …

r list optimization indexing vectorization
Vectorizing a function (Python)

I'm new to python and trying to do a HW assignment and it keeps throwing this error back at me (…

python numpy scipy vectorization scalar
how verify that operating system support avx2 instructions

I have configuration: Intel(R) Core(TM) i7-4702MQ CPU (with Haswell architecture), Windows 8, Intel C++ Compiller XE 13.0. I …

c vectorization intel instruction-set avx2