Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: static_assert failed due to requirement 'Map<const Eigen::Matrix<double, -1, 1, 0, -1, 1>, 0, Eigen::Stride<0, 0>>::SizeAtCompileTime != Eigen::Dynamic' #829

Open
yurivict opened this issue Aug 17, 2021 · 0 comments

Comments

@yurivict
Copy link

In file included from fwd_eeg_sphere_model.cpp:41:
In file included from ../../libraries/utils/simplex_algorithm.h:49:
In file included from ../../include/3rdParty/eigen3/Eigen/Core:469:
../../include/3rdParty/eigen3/Eigen/src/Core/MapBase.h:152:7: error: static_assert failed due to requirement 'Map<const Eigen::Matrix<double, -1, 1, 0, -1, 1>, 0, Eigen::Stride<0, 0>>::SizeAtCompileTime != Eigen::Dynamic' "YOU_CALLED_A_FIXED_SIZE_METHOD_ON_A_DYNAMIC_SIZE_MATRIX_OR_VECTOR"
      EIGEN_STATIC_ASSERT_FIXED_SIZE(Derived)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/3rdParty/eigen3/Eigen/src/Core/util/StaticAssert.h:145:3: note: expanded from macro 'EIGEN_STATIC_ASSERT_FIXED_SIZE'
  EIGEN_STATIC_ASSERT(TYPE::SizeAtCompileTime!=Eigen::Dynamic, \
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/3rdParty/eigen3/Eigen/src/Core/util/StaticAssert.h:33:40: note: expanded from macro 'EIGEN_STATIC_ASSERT'
    #define EIGEN_STATIC_ASSERT(X,MSG) static_assert(X,#MSG);
                                       ^             ~
../../include/3rdParty/eigen3/Eigen/src/Core/Map.h:130:9: note: in instantiation of member function 'Eigen::MapBase<Eigen::Map<const Eigen::Matrix<double, -1, 1, 0, -1, 1>, 0, Eigen::Stride<0, 0>>, 0>::MapBase' requested here
      : Base(cast_to_pointer_type(dataPtr)), m_stride(stride)
        ^
../../include/3rdParty/eigen3/Eigen/src/Core/PlainObjectBase.h:809:26: note: in instantiation of member function 'Eigen::Map<const Eigen::Matrix<double, -1, 1, 0, -1, 1>, 0, Eigen::Stride<0, 0>>::Map' requested here
      this->_set_noalias(ConstMapType(data));
                         ^

Version: 0.1.9
arpack-ng-3.8.0
OS: FreeBSD 13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant