Skip to content

Commit 3d102a9

Browse files
committed
test: fix issue with former Eigen version
1 parent 0d0b9a1 commit 3d102a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittest/complex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Eigen::Matrix<std::complex<Scalar>,Rows,Cols,Options>
5656
ascomplex(const Eigen::Matrix<Scalar,Rows,Cols,Options> & mat)
5757
{
5858
typedef Eigen::Matrix<std::complex<Scalar>,Rows,Cols,Options> ReturnType;
59-
return ReturnType(mat);
59+
return ReturnType(mat.template cast<std::complex<Scalar> >());
6060
}
6161

6262
BOOST_PYTHON_MODULE(complex)

0 commit comments

Comments
 (0)