Changeset 16349 for branches/2915AbsoluteSymbol/HeuristicLab.ExtLibs/HeuristicLab.NativeInterpreter/0.1/NativeInterpreter0.1/src/vector_operations.h
 Timestamp:
 12/07/18 19:51:23 (12 months ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/2915AbsoluteSymbol/HeuristicLab.ExtLibs/HeuristicLab.NativeInterpreter/0.1/NativeInterpreter0.1/src/vector_operations.h
r16274 r16349 53 53 inline void inv(double* __restrict a, double const * __restrict b) noexcept { FOR(i) a[i] = 1. / b[i]; } 54 54 inline void neg(double* __restrict a, double const * __restrict b) noexcept { FOR(i) a[i] = b[i]; } 55 inline void abs(double* __restrict a, double const * __restrict b) noexcept { FOR(i) a[i] = std::abs(b[i]); } 56 inline void analytical_quotient(double* __restrict a, double const * __restrict b) noexcept { FOR(i) a[i] /= hl_sqrt(b[i]*b[i] + 1.); } 55 57 56 58 // vector  scalar operations … … 60 62 inline void mul(double* __restrict a, double s) noexcept { FOR(i) a[i] *= s; } 61 63 inline void div(double* __restrict a, double s) noexcept { FOR(i) a[i] /= s; } 64 inline void pow(double* __restrict dst, double const * __restrict src, double s) noexcept { FOR(i) dst[i] = hl_pow(src[i], s); } 62 65 63 66 // vector operations
Note: See TracChangeset
for help on using the changeset viewer.