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

Function nc_log10

numexpr3/complex_functions.hpp:1365–1383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1363#define M_LOG10_EF 0.434294481903251827651128918916605082294397f
1364
1365static void
1366nc_log10( npy_intp n, npy_complex64 *x, npy_intp sb1, npy_complex64 *r)
1367{
1368 if( sb1 == sizeof(npy_complex64) ) { // Aligned
1369 for( npy_intp I = 0; I < n; I++ ) {
1370 _inline_log( x[I], r[I] );
1371 r[I].real *= M_LOG10_EF;
1372 r[I].imag *= M_LOG10_EF;
1373 }
1374 }
1375 else {
1376 sb1 /= sizeof(npy_complex64);
1377 for( npy_intp I = 0; I < n; I++ ) {
1378 _inline_log( x[I*sb1], r[I] );
1379 r[I].real *= M_LOG10_EF;
1380 r[I].imag *= M_LOG10_EF;
1381 }
1382 }
1383}
1384
1385static void
1386nc_log10( npy_intp n, npy_complex128 *x, npy_intp sb1, npy_complex128 *r)

Callers

nothing calls this directly

Calls 1

_inline_logFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…