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

Correct initialization

Tags: None
(comma "," separated)
Akkawe
Registered Member
Posts
35
Karma
0
OS

Correct initialization

Fri Jan 27, 2012 9:14 pm
ex:
I define:
Code: Select all
VectorXcd A(N_POINTS);

The compiler returns many warnings. One of that:
WARNING!
1> equivalentsra.cpp(83) : see reference to class template instantiation 'Eigen::Matrix<_Scalar,_Rows,_Cols>' being compiled
1> with
1> [
1> _Scalar=std::complex<double>,
1> _Rows=-1,
1> _Cols=1
1> ]


Why?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Correct initialization

Sat Jan 28, 2012 10:20 am
The warning message seems to be incomplete.
Akkawe
Registered Member
Posts
35
Karma
0
OS

Re: Correct initialization

Mon Jan 30, 2012 2:18 pm
For that line, the message is completed.
This is the whole warning messages of the file ( the warning in the provious post is in bold):
------ Build started: Project: Modello, Configuration: Debug Win32 ------
1>Compiling...
1>EquivalentSRA.cpp
1>...eigen-eigen-a810d5dbab47\eigen\src\core\util\xprhelper.h(130) : warning C4308: negative integral constant converted to unsigned type
1> ...eigen-eigen-a810d5dbab47\eigen\src\core\matrix.h(130) : see reference to class template instantiation 'Eigen::internal::compute_matrix_flags<Scalar,Rows,Cols,Options,MaxRows,MaxCols>' being compiled
1> with
1> [
1> Scalar=int,
1> Rows=-1,
1> Cols=1,
1> Options=0,
1> MaxRows=-1,
1> MaxCols=1
1> ]
1> ...eigen-eigen-a810d5dbab47\eigen\src\core\plainobjectbase.h(65) : see reference to class template instantiation 'Eigen::internal::traits<T>' being compiled
1> with
1> [
1> T=Eigen::Matrix<int,-1,1>
1> ]
1> ...eigen-eigen-a810d5dbab47\eigen\src\core\matrix.h(142) : see reference to class template instantiation 'Eigen::PlainObjectBase<Derived>' being compiled
1> with
1> [
1> Derived=Eigen::Matrix<int,-1,1>
1> ...eigen-eigen-a810d5dbab47\eigen\src\sparsecholesky\simplicialcholesky.h(279) : see reference to class template instantiation 'Eigen::Matrix<_Scalar,_Rows,_Cols>' being compiled
1> with
1> [
1> _Scalar=int,
1> _Rows=-1,
1> _Cols=1
1> ]
1> ...eigen-eigen-a810d5dbab47\eigen\src\sparsecholesky\simplicialcholesky.h(286) : see reference to class template instantiation 'Eigen::SimplicialCholeskyBase<Derived>' being compiled
1>...eigen-eigen-a810d5dbab47\eigen\src\core\util\xprhelper.h(130) : warning C4307: '*' : integral constant overflow
1>...eigen-eigen-a810d5dbab47\eigen\src\core\util\xprhelper.h(130) : warning C4308: negative integral constant converted to unsigned type
1> ...eigen-eigen-a810d5dbab47\eigen\src\core\matrix.h(130) : see reference to class template instantiation 'Eigen::internal::compute_matrix_flags<Scalar,Rows,Cols,Options,MaxRows,MaxCols>' being compiled
1> with
1> [
1> Scalar=std::complex<double>,
1> Rows=-1,
1> Cols=1,
1> Options=0,
1> MaxRows=-1,
1> MaxCols=1
1> ]
1> ...eigen-eigen-a810d5dbab47\eigen\src\core\plainobjectbase.h(65) : see reference to class template instantiation 'Eigen::internal::traits<T>' being compiled
1> with
1> [
1> T=Eigen::Matrix<std::complex<double>,-1,1>
1> ]
1> ...eigen-eigen-a810d5dbab47\eigen\src\core\matrix.h(142) : see reference to class template instantiation 'Eigen::PlainObjectBase<Derived>' being compiled
1> with
1> [
1> Derived=Eigen::Matrix<std::complex<double>,-1,1>
1> ]
1> ...equivalentsra.cpp(83) : see reference to class template instantiation 'Eigen::Matrix<_Scalar,_Rows,_Cols>' being compiled
1> with
1> [
1> _Scalar=std::complex<double>,
1> _Rows=-1,
1> _Cols=1
1> ]

1>...eigen-eigen-a810d5dbab47\eigen\src\core\util\xprhelper.h(130) : warning C4307: '*' : integral constant overflow
1>...equivalentsra.cpp(93) : warning C4244: 'argument' : conversion from 'double' to 'unsigned int', possible loss of data
1>...eigen-eigen-a810d5dbab47\eigen\src\core\block.h(82) : warning C4308: negative integral constant converted to unsigned type
1> ...eigen-eigen-a810d5dbab47\eigen\src\core\util\forwarddeclarations.h(46) : see reference to class template instantiation 'Eigen::internal::traits<T>' being compiled
1> with
1> [
1> T=Eigen::Block<Eigen::Matrix<std::complex<double>,-1,-1>,-1,1,true>
1> ]
1> ...eigen-eigen-a810d5dbab47\eigen\src\core\util\forwarddeclarations.h(123) : see reference to class template instantiation 'Eigen::internal::accessors_level<Derived>' being compiled
1> with
1> [
1> Derived=Eigen::Block<Eigen::Matrix<std::complex<double>,-1,-1>,-1,1,true>
1> ]
1> ...equivalentsra.cpp(96) : see reference to class template instantiation 'Eigen::Block<XprType,BlockRows,BlockCols,InnerPanel>' being compiled
1> with
1> [
1> XprType=Eigen::Matrix<std::complex<double>,-1,-1>,
1> BlockRows=-1,
1> BlockCols=1,
1> InnerPanel=true
1> ]
1>...\eigen-eigen-a810d5dbab47\eigen\src\core\block.h(82) : warning C4307: '*' : integral constant overflow
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Correct initialization

Tue Jan 31, 2012 5:07 pm
the relevant lines are:

1>...eigen-eigen-a810d5dbab47\eigen\src\core\util\xprhelper.h(130) : warning C4307: '*' : integral constant overflow
1>...eigen-eigen-a810d5dbab47\eigen\src\core\util\xprhelper.h(130) : warning C4308: negative integral constant converted to unsigned type

and they have already been fixed. The fixes will be part of the next releases....
Akkawe
Registered Member
Posts
35
Karma
0
OS

Re: Correct initialization

Tue Jan 31, 2012 7:19 pm
ggael wrote:the relevant lines are:

1>...eigen-eigen-a810d5dbab47\eigen\src\core\util\xprhelper.h(130) : warning C4307: '*' : integral constant overflow
1>...eigen-eigen-a810d5dbab47\eigen\src\core\util\xprhelper.h(130) : warning C4308: negative integral constant converted to unsigned type

and they have already been fixed. The fixes will be part of the next releases....

Ok, thank you.


Bookmarks



Who is online

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