Skip to content

Commit

Permalink
Merge pull request #2915 from stan-dev/fix/eigenvalues-return-type
Browse files Browse the repository at this point in the history
  • Loading branch information
syclik committed Jun 29, 2023
2 parents 8911902 + 4fd7182 commit d88c95f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stan/math/prim/fun/eigenvalues.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace math {
*/
template <typename EigMat, require_eigen_matrix_dynamic_t<EigMat>* = nullptr,
require_not_vt_complex<EigMat>* = nullptr>
inline Eigen::Matrix<complex_return_t<value_type_t<EigMat>>, 1, -1> eigenvalues(
inline Eigen::Matrix<complex_return_t<value_type_t<EigMat>>, -1, 1> eigenvalues(
const EigMat& m) {
using PlainMat = plain_type_t<EigMat>;
const PlainMat& m_eval = m;
Expand All @@ -39,7 +39,7 @@ inline Eigen::Matrix<complex_return_t<value_type_t<EigMat>>, 1, -1> eigenvalues(
template <typename EigCplxMat,
require_eigen_matrix_dynamic_t<EigCplxMat>* = nullptr,
require_vt_complex<EigCplxMat>* = nullptr>
inline Eigen::Matrix<complex_return_t<value_type_t<EigCplxMat>>, 1, -1>
inline Eigen::Matrix<complex_return_t<value_type_t<EigCplxMat>>, -1, 1>
eigenvalues(const EigCplxMat& m) {
using PlainMat = Eigen::Matrix<scalar_type_t<EigCplxMat>, -1, -1>;
const PlainMat& m_eval = m;
Expand Down

0 comments on commit d88c95f

Please sign in to comment.