|
24 | 24 | #include <Eigen/QR> |
25 | 25 | #include <Eigen/src/Core/NumTraits.h> |
26 | 26 |
|
27 | | -namespace Eigen { |
| 27 | + namespace Eigen { |
28 | 28 |
|
29 | | -/** |
30 | | - * Traits specialization for Eigen binary operations for `int` |
31 | | - * and `double` arguments. |
32 | | - * |
33 | | - * @tparam BinaryOp type of binary operation for which traits are |
34 | | - * defined |
35 | | - */ |
36 | | -template <typename BinaryOp> |
37 | | -struct ScalarBinaryOpTraits<int, double, BinaryOp> { |
38 | | - using ReturnType = double; |
39 | | -}; |
| 29 | + /** |
| 30 | + * Traits specialization for Eigen binary operations for `int` |
| 31 | + * and `double` arguments. |
| 32 | + * |
| 33 | + * @tparam BinaryOp type of binary operation for which traits are |
| 34 | + * defined |
| 35 | + */ |
| 36 | + template <typename BinaryOp> |
| 37 | + struct ScalarBinaryOpTraits<int, double, BinaryOp> { |
| 38 | + using ReturnType = double; |
| 39 | + }; |
40 | 40 |
|
41 | | -/** |
42 | | - * Traits specialization for Eigen binary operations for `double` |
43 | | - * and `int` arguments. |
44 | | - * |
45 | | - * @tparam BinaryOp type of binary operation for which traits are |
46 | | - * defined |
47 | | - */ |
48 | | -template <typename BinaryOp> |
49 | | -struct ScalarBinaryOpTraits<double, int, BinaryOp> { |
50 | | - using ReturnType = double; |
51 | | -}; |
| 41 | + /** |
| 42 | + * Traits specialization for Eigen binary operations for `double` |
| 43 | + * and `int` arguments. |
| 44 | + * |
| 45 | + * @tparam BinaryOp type of binary operation for which traits are |
| 46 | + * defined |
| 47 | + */ |
| 48 | + template <typename BinaryOp> |
| 49 | + struct ScalarBinaryOpTraits<double, int, BinaryOp> { |
| 50 | + using ReturnType = double; |
| 51 | + }; |
52 | 52 |
|
53 | | -/** |
54 | | - * Traits specialization for Eigen binary operations for `int` |
55 | | - * and complex `double` arguments. |
56 | | - * |
57 | | - * @tparam BinaryOp type of binary operation for which traits are |
58 | | - * defined |
59 | | - */ |
60 | | -template <typename BinaryOp> |
61 | | -struct ScalarBinaryOpTraits<int, std::complex<double>, BinaryOp> { |
62 | | - using ReturnType = std::complex<double>; |
63 | | -}; |
| 53 | + /** |
| 54 | + * Traits specialization for Eigen binary operations for `int` |
| 55 | + * and complex `double` arguments. |
| 56 | + * |
| 57 | + * @tparam BinaryOp type of binary operation for which traits are |
| 58 | + * defined |
| 59 | + */ |
| 60 | + template <typename BinaryOp> |
| 61 | + struct ScalarBinaryOpTraits<int, std::complex<double>, BinaryOp> { |
| 62 | + using ReturnType = std::complex<double>; |
| 63 | + }; |
64 | 64 |
|
| 65 | + /** |
| 66 | + * Traits specialization for Eigen binary operations for complex |
| 67 | + * `double` and `int` arguments. |
| 68 | + * |
| 69 | + * @tparam BinaryOp type of binary operation for which traits are |
| 70 | + * defined |
| 71 | + */ |
| 72 | + template <typename BinaryOp> |
| 73 | + struct ScalarBinaryOpTraits<std::complex<double>, int, BinaryOp> { |
| 74 | + using ReturnType = std::complex<double>; |
| 75 | + }; |
65 | 76 |
|
66 | | -/** |
67 | | - * Traits specialization for Eigen binary operations for complex |
68 | | - * `double` and `int` arguments. |
69 | | - * |
70 | | - * @tparam BinaryOp type of binary operation for which traits are |
71 | | - * defined |
72 | | - */ |
73 | | -template <typename BinaryOp> |
74 | | -struct ScalarBinaryOpTraits<std::complex<double>, int, BinaryOp> { |
75 | | - using ReturnType = std::complex<double>; |
76 | | -}; |
77 | | - |
78 | | -} |
| 77 | +} // namespace Eigen |
79 | 78 |
|
80 | 79 | #endif |
0 commit comments