|
3 | 3 |
|
4 | 4 | #include <stan/math/rev/meta.hpp> |
5 | 5 | #include <stan/math/rev/core/var.hpp> |
6 | | -#include <stan/math/rev/core/std_complex.hpp> |
7 | 6 | #include <stan/math/rev/core/arena_matrix.hpp> |
8 | 7 | #include <stan/math/rev/core/callback_vari.hpp> |
9 | 8 | #include <stan/math/prim/fun/as_column_vector_or_scalar.hpp> |
10 | 9 | #include <stan/math/prim/fun/as_array_or_scalar.hpp> |
11 | 10 | #include <stan/math/prim/fun/constants.hpp> |
12 | 11 | #include <stan/math/prim/fun/is_any_nan.hpp> |
13 | | -#include <stan/math/prim/core/operator_subtraction.hpp> |
14 | 12 |
|
15 | 13 | namespace stan { |
16 | 14 | namespace math { |
@@ -312,45 +310,6 @@ inline auto operator-(const VarMat1& a, const VarMat2& b) { |
312 | 310 | return subtract(a, b); |
313 | 311 | } |
314 | 312 |
|
315 | | -/** |
316 | | - * Return the difference of std::complex<var> arguments. |
317 | | - * |
318 | | - * @param[in] x first argument |
319 | | - * @param[in] y second argument |
320 | | - * @return subtraction of arguments |
321 | | - */ |
322 | | -inline std::complex<stan::math::var> operator-( |
323 | | - const std::complex<stan::math::var>& x, |
324 | | - const std::complex<stan::math::var>& y) { |
325 | | - return internal::complex_subtract(x, y); |
326 | | -} |
327 | | - |
328 | | -/** |
329 | | - * Return the difference of std::complex<double> and |
330 | | - * std::complex<var> arguments. |
331 | | - * |
332 | | - * @param[in] x first argument |
333 | | - * @param[in] y second argument |
334 | | - * @return subtraction of arguments |
335 | | - */ |
336 | | -inline std::complex<stan::math::var> operator-( |
337 | | - const std::complex<double>& x, const std::complex<stan::math::var>& y) { |
338 | | - return internal::complex_subtract(x, y); |
339 | | -} |
340 | | - |
341 | | -/** |
342 | | - * Return the difference of std::complex<double> and |
343 | | - * std::complex<var> arguments. |
344 | | - * |
345 | | - * @param[in] x first argument |
346 | | - * @param[in] y second argument |
347 | | - * @return subtraction of arguments |
348 | | - */ |
349 | | -inline std::complex<stan::math::var> operator-( |
350 | | - const std::complex<stan::math::var>& x, const std::complex<double>& y) { |
351 | | - return internal::complex_subtract(x, y); |
352 | | -} |
353 | | - |
354 | 313 | } // namespace math |
355 | 314 | } // namespace stan |
356 | 315 | #endif |
0 commit comments