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

Function fill_first_half

numpy/fft/_pocketfft.c:164–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162 }
163
164NOINLINE static void fill_first_half(size_t n, double * restrict res)
165 {
166 size_t half = n>>1;
167 if ((n&3)==0)
168 for (size_t i=0; i<half; i+=2)
169 {
170 res[i+half] = -res[i+1];
171 res[i+half+1] = res[i ];
172 }
173 else
174 for (size_t i=2, j=2*half-2; i<half; i+=2, j-=2)
175 {
176 res[j ] = -res[i ];
177 res[j+1] = res[i+1];
178 }
179 }
180
181NOINLINE static void fill_second_half(size_t n, double * restrict res)
182 {

Callers 1

sincos_2pibyn_halfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected