a few tmp fix to bypass eigen errors, should not be permanent solutions

release/4.3a0
Jing Dong 2017-05-17 14:30:17 -07:00
parent 6a5beab4d4
commit 3f98942e9a
2 changed files with 4 additions and 1 deletions

View File

@ -251,6 +251,9 @@ else()
endif()
# tmp mute eigen static assert to avoid errors in shared lib
add_definitions(-DEIGEN_NO_STATIC_ASSERT)
###############################################################################
# Global compile options

View File

@ -380,7 +380,7 @@ class PlainObjectBase : public internal::dense_xpr_base<Derived>::type
*/
EIGEN_STRONG_INLINE void conservativeResize(Index size)
{
internal::conservative_resize_like_impl<Derived>::run(*this, size);
internal::conservative_resize_like_impl<Derived>::run(*this, size, 1);
}
/** Resizes the matrix to \a rows x \a cols of \c other, while leaving old values untouched.