@@ -113,18 +113,44 @@ inline var operator*(Arith a, const var& b) {
113113 return {new internal::multiply_vd_vari (b.vi_ , a)}; // by symmetry
114114}
115115
116- inline std::complex <stan::math::var> operator *(const std::complex <stan::math::var>& x,
117- const std::complex <stan::math::var>& y) {
116+ /* *
117+ * Return the product of std::complex<var> arguments.
118+ *
119+ * @param[in] x first argument
120+ * @param[in] y second argument
121+ * @return product of arguments
122+ */
123+ inline std::complex <stan::math::var>
124+ operator *(const std::complex <stan::math::var>& x,
125+ const std::complex <stan::math::var>& y) {
118126 return internal::complex_multiply (x, y);
119127}
120128
121- inline std::complex <stan::math::var> operator *(const std::complex <double >& x,
122- const std::complex <stan::math::var>& y) {
129+ /* *
130+ * Return the product of std::complex<double> and
131+ * std::complex<var> arguments.
132+ *
133+ * @param[in] x first argument
134+ * @param[in] y second argument
135+ * @return product of arguments
136+ */
137+ inline std::complex <stan::math::var>
138+ operator *(const std::complex <double >& x,
139+ const std::complex <stan::math::var>& y) {
123140 return internal::complex_multiply (x, y);
124141}
125142
126- inline std::complex <stan::math::var> operator *(const std::complex <stan::math::var>& x,
127- const std::complex <double >& y) {
143+ /* *
144+ * Return the product of std::complex<double> and
145+ * std::complex<var> arguments.
146+ *
147+ * @param[in] x first argument
148+ * @param[in] y second argument
149+ * @return product of arguments
150+ */
151+ inline std::complex <stan::math::var>
152+ operator *(const std::complex <stan::math::var>& x,
153+ const std::complex <double >& y) {
128154 return internal::complex_multiply (x, y);
129155}
130156
0 commit comments