This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problem instantiating Matrix<float, 3, Dynamic>

Tags: None
(comma "," separated)
DikobrAz
Registered Member
Posts
3
Karma
0
When I try to use Matrix<float, 3, Dynamic> MSVS 2008 tells me the following:
Code: Select all
error C2065: 'YOU_TRIED_CALLING_A_VECTOR_METHOD_ON_A_MATRIX' : undeclared identifier


Tutorial says it is possible to instantiate matrix with static number of rows and dynamic number of columns, so I've tried different Eigen versions (from 3.0 to 3.1.0) and development branch, but nothing helped.

Full log:
Code: Select all
1>f:\programming\slon\walker\3rdparty\eigen\eigen\src/Core/CwiseNullaryOp.h(152) : error C2039: 'YOU_TRIED_CALLING_A_VECTOR_METHOD_ON_A_MATRIX' : is not a member of 'Eigen::internal::static_assertion<condition>'
1>        with
1>        [
1>            condition=false
1>        ]
1>        f:\programming\slon\walker\3rdparty\eigen\eigen\src/Core/CwiseNullaryOp.h(213) : see reference to function template instantiation 'const Eigen::CwiseNullaryOp<NullaryOp,PlainObjectType> Eigen::DenseBase<Derived>::NullaryExpr<Eigen::internal::scalar_constant_op<Scalar>>(__w64 int,const CustomNullaryOp &)' being compiled
1>        with
1>        [
1>            NullaryOp=Eigen::internal::scalar_constant_op<float>,
1>            PlainObjectType=Eigen::Matrix<float,3,-1>,
1>            Derived=Eigen::Matrix<float,3,-1>,
1>            Scalar=float,
1>            CustomNullaryOp=Eigen::internal::scalar_constant_op<float>
1>        ]
1>        f:\programming\slon\walker\3rdparty\eigen\eigen\src/Core/CwiseNullaryOp.h(212) : while compiling class template member function 'const Eigen::CwiseNullaryOp<NullaryOp,PlainObjectType> Eigen::DenseBase<Derived>::Constant(__w64 int,const float &)'
1>        with
1>        [
1>            NullaryOp=Eigen::internal::scalar_constant_op<float>,
1>            PlainObjectType=Eigen::Matrix<float,3,-1>,
1>            Derived=Eigen::Matrix<float,3,-1>
1>        ]
1>        f:\programming\slon\walker\3rdparty\eigen\eigen\src/Core/CwiseNullaryOp.h(441) : while compiling class template member function 'const Eigen::CwiseNullaryOp<NullaryOp,PlainObjectType> Eigen::DenseBase<Derived>::Zero(__w64 int)'
1>        with
1>        [
1>            NullaryOp=Eigen::internal::scalar_constant_op<float>,
1>            PlainObjectType=Eigen::Matrix<float,3,-1>,
1>            Derived=Eigen::Matrix<float,3,-1>
1>        ]
1>        f:\programming\slon\walker\3rdparty\eigen\eigen\src/Core/MatrixBase.h(63) : see reference to class template instantiation 'Eigen::DenseBase<Derived>' being compiled
1>        with
1>        [
1>            Derived=Eigen::Matrix<float,3,-1>
1>        ]
1>        f:\programming\slon\walker\3rdparty\eigen\eigen\src/Core/PlainObjectBase.h(66) : see reference to class template instantiation 'Eigen::MatrixBase<Derived>' being compiled
1>        with
1>        [
1>            Derived=Eigen::Matrix<float,3,-1>
1>        ]
1>        f:\programming\slon\walker\3rdparty\eigen\eigen\src/Core/Matrix.h(142) : see reference to class template instantiation 'Eigen::PlainObjectBase<Derived>' being compiled
1>        with
1>        [
1>            Derived=Eigen::Matrix<float,3,-1>
1>        ]
1>        ..\..\..\..\WalkerYard\lib\src\Control\ArticulatedFigure.cpp(763) : see reference to class template instantiation 'Eigen::Matrix<_Scalar,_Rows,_Cols>' being compiled
1>        with
1>        [
1>            _Scalar=float,
1>            _Rows=3,
1>            _Cols=-1
1>        ]
1>f:\programming\slon\walker\3rdparty\eigen\eigen\src/Core/CwiseNullaryOp.h(152) : error C2065: 'YOU_TRIED_CALLING_A_VECTOR_METHOD_ON_A_MATRIX' : undeclared identifier
DikobrAz
Registered Member
Posts
3
Karma
0
I found the problem. I really used Matrix<float, 3, Dynamic>::Zero(size), but in completely different place.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]