MCPcopy Create free account
hub / github.com/pydata/numexpr / nc_add

Function nc_add

numexpr3/complex_functions.hpp:161–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161static void
162nc_add( npy_intp n, npy_complex64 *a, npy_intp sb1, npy_complex64 *b, npy_intp sb2, npy_complex64 *r )
163{
164 if( sb1 == sizeof(npy_complex64) && sb2 == sizeof(npy_complex64) ) { // Aligned
165 for( npy_intp I = 0; I < n; I++ ) {
166 _inline_add( a[I], b[I], r[I] );
167 }
168 }
169 else {
170 sb2 /= sizeof(npy_complex64);
171 sb1 /= sizeof(npy_complex64);
172 for( npy_intp I = 0; I < n; I++ ) {
173 _inline_add( a[I*sb1], b[I*sb2], r[I] );
174 }
175 }
176}
177
178static void
179nc_add( npy_intp n, npy_complex128 *a, npy_intp sb1, npy_complex128 *b, npy_intp sb2, npy_complex128 *r )

Callers

nothing calls this directly

Calls 1

_inline_addFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…