Changeset 16988 for branches/2925_AutoDiffForDynamicalModels/HeuristicLab.ExtLibs/HeuristicLab.NativeInterpreter/0.1/NativeInterpreter-0.1/src/vector_operations.h
- Timestamp:
- 05/25/19 08:43:16 (5 years ago)
- Location:
- branches/2925_AutoDiffForDynamicalModels
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2925_AutoDiffForDynamicalModels
- Property svn:mergeinfo changed
-
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.ExtLibs
- Property svn:mergeinfo changed
-
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.ExtLibs/HeuristicLab.NativeInterpreter/0.1/NativeInterpreter-0.1/src/vector_operations.h
r16892 r16988 17 17 #define hl_sqrt vdt::fast_sqrt 18 18 #define hl_pow vdt::fast_pow 19 #define hl_cbrt std::cbrt 19 20 #define hl_round vdt::fast_round 20 21 #define hl_inv vdt::fast_inv … … 28 29 #define hl_sqrt std::sqrt 29 30 #define hl_pow std::pow 31 #define hl_cbrt std::cbrt 30 32 #define hl_round std::round 31 33 #define hl_inv(x) 1. / x; … … 56 58 inline void pow(double* __restrict a, double const * __restrict b) noexcept { FOR(i) a[i] = hl_pow(a[i], hl_round(b[i])); }; 57 59 inline void root(double* __restrict a, double const * __restrict b) noexcept { FOR(i) a[i] = hl_pow(a[i], 1. / hl_round(b[i])); }; 60 inline void cbrt(double* __restrict a, double const * __restrict b) noexcept { FOR(i) a[i] = hl_cbrt(b[i]); }; 58 61 inline void square(double* __restrict a, double const * __restrict b) noexcept { FOR(i) a[i] = hl_pow(b[i], 2.); }; 59 62 inline void inv(double* __restrict a, double const * __restrict b) noexcept { FOR(i) a[i] = hl_inv(b[i]); } … … 81 84 inline void round(double* __restrict a) noexcept { FOR(i) a[i] = hl_round(a[i]); } 82 85 inline void square(double* __restrict a) noexcept { FOR(i) a[i] = hl_pow(a[i], 2.); } 86 inline void cbrt(double* __restrict a) noexcept { FOR(i) a[i] = hl_cbrt(a[i]); } 83 87 84 88 #undef FOR
Note: See TracChangeset
for help on using the changeset viewer.