MCPcopy Create free account
hub / github.com/numpy/numpy / fill_second_half

Function fill_second_half

numpy/fft/_pocketfft.c:181–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179 }
180
181NOINLINE static void fill_second_half(size_t n, double * restrict res)
182 {
183 if ((n&1)==0)
184 for (size_t i=0; i<n; ++i)
185 res[i+n] = -res[i];
186 else
187 for (size_t i=2, j=2*n-2; i<n; i+=2, j-=2)
188 {
189 res[j ] = res[i ];
190 res[j+1] = -res[i+1];
191 }
192 }
193
194NOINLINE static void sincos_2pibyn_half(size_t n, double * restrict res)
195 {

Callers 1

sincos_2pibynFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected