Home » Community » Newbie corner » Eigen and UPP? (STL question?)
Eigen and UPP? (STL question?) [message #32360] |
Fri, 13 May 2011 03:43 |
|
Hi, %all%!
Gotta make a remark - I haven't been coding on C++ for, literally, YEARS and never actually used STL, thus all this stuff I'm trying to grasp while having to do an actual job using this is pretty confusing.
Currently I've got to implement some pretty complex CCTV-like system from scratch and I'll need to use some heavy math on images. Surfed a toolkit called Eigen (http://eigen.tuxfamily.org) that seems to fit my needs.
Trying to build the very first Eigen code example:
#include "Test_1.h"
#include <Eigen/Dense>
using Eigen::MatrixXd;
CONSOLE_APP_MAIN
{
MatrixXd m ( 2, 2 );
m ( 0, 0 ) = 3;
m ( 1, 0 ) = 2.5;
m ( 0, 1 ) = -1;
m ( 1, 1 ) = m ( 1, 0 ) + m ( 0, 1 );
Cout() << m;
}
and fail:
Quote: | c:\upp\uppsrc\core\String.h(400) : error C2039: 'ToString' : is not a member of 'Eigen::Matrix<_Scalar,_Rows,_Cols>'
|
which is not very surprising, but unpleasant nevertheless.
My guess is that m (in original example "std::cout << m << std::endl;") can't be converted to String, but I don't get how to solve this. Could you please give me a hand here?
[Updated on: Fri, 13 May 2011 06:52] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu May 09 12:10:19 CEST 2024
Total time taken to generate the page: 0.02626 seconds
|