Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include <autodiff/common/numbertraits.hpp> 7 : #include <autodiff/forward/dual.hpp> 8 : #include <autodiff/reverse/var.hpp> 9 : 10 : #include "Utilities/Simd/Simd.hpp" 11 : 12 0 : namespace autodiff::detail { 13 : /// Template specialization for simd::batch<double> to treat it as arithmetic. 14 : template <> 15 : struct ArithmeticTraits<simd::batch<double>> { 16 : static constexpr bool isArithmetic = true; 17 : }; 18 : 19 : } // namespace autodiff::detail