Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [vectorization]

For questions about converting multiple operations a single "vectorized" operation. Example questions might include how to alter code to ensure certain "vectorized" instructions are used.

4 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
81 views

Solving tridiagonal Toeplitz system using SIMD instructions

I need to solve many small Toeplitz systems that fit entirely in cache, meaning the computation is compute bound. Are there vectorizable algorithms for this? I found a few older articles: (https://www....
Pel's user avatar
  • 21
1 vote
0 answers
47 views

Converting an expression into an einsum

I have the following expression that I need to calculate for some matrices: $$ \sum_{k}c_{t,i,k}\sigma^\prime\left(w_tX_t+b_t\right)_k\left(\sum_\ell w_{t,k,\ell}\tilde{X}_t^{w,\ell}\right) $$ I could,...
Gummy bears's user avatar
1 vote
0 answers
66 views

Help with vectorized computation where vector multiplication would need to create an additional dimension

I want to use vectorized computation (with python and numpy) to do some calculation involving bessel functions. As is often the case, I need to calculate the sums of bessel functions of (infinit) ...
Andreas Schuldei's user avatar
1 vote
0 answers
347 views

Vectorize function integration

I need to implement the following in python: For a given discrete time series $Z_t$ ($t={0...T}$), find the smallest $t$ such that: $$c\sum_{s=0}^t e^{[k(Z_t-Z_s)+m(t-s)]} \geq \frac{p^*}{1-p^*} $$ ...
dayum's user avatar
  • 163