<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://programmingexamples.net/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://programmingexamples.net/w/index.php?action=history&amp;feed=atom&amp;title=CPP%2FEigen%2FSTL_vector_of_Eigen_vectors</id>
		<title>CPP/Eigen/STL vector of Eigen vectors - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://programmingexamples.net/w/index.php?action=history&amp;feed=atom&amp;title=CPP%2FEigen%2FSTL_vector_of_Eigen_vectors"/>
		<link rel="alternate" type="text/html" href="http://programmingexamples.net/w/index.php?title=CPP/Eigen/STL_vector_of_Eigen_vectors&amp;action=history"/>
		<updated>2026-04-18T00:36:33Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.5</generator>

	<entry>
		<id>http://programmingexamples.net/w/index.php?title=CPP/Eigen/STL_vector_of_Eigen_vectors&amp;diff=5161&amp;oldid=prev</id>
		<title>Daviddoria: Created page with '==STLVector.cpp== &lt;source lang=&quot;cpp&quot;&gt; #include &lt;iostream&gt; #include &lt;vector&gt;  #include &lt;Eigen/Geometry&gt; #include &lt;Eigen/Dense&gt; // for Vector #include &lt;Eigen/StdVector&gt; // Required…'</title>
		<link rel="alternate" type="text/html" href="http://programmingexamples.net/w/index.php?title=CPP/Eigen/STL_vector_of_Eigen_vectors&amp;diff=5161&amp;oldid=prev"/>
				<updated>2012-05-17T16:13:10Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;==STLVector.cpp== &amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt; #include &amp;lt;iostream&amp;gt; #include &amp;lt;vector&amp;gt;  #include &amp;lt;Eigen/Geometry&amp;gt; #include &amp;lt;Eigen/Dense&amp;gt; // for Vector #include &amp;lt;Eigen/StdVector&amp;gt; // Required…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==STLVector.cpp==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;vector&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;Eigen/Geometry&amp;gt;&lt;br /&gt;
#include &amp;lt;Eigen/Dense&amp;gt; // for Vector&lt;br /&gt;
#include &amp;lt;Eigen/StdVector&amp;gt; // Required (http://eigen.tuxfamily.org/dox-devel/TopicStlContainers.html)&lt;br /&gt;
&lt;br /&gt;
// If Eigen complains about &amp;quot;ptrdiff_t does not name a type&amp;quot;, #include &amp;lt;cstddef&amp;gt; from the file it is complaining about.&lt;br /&gt;
&lt;br /&gt;
typedef std::vector&amp;lt;Eigen::Vector2d,Eigen::aligned_allocator&amp;lt;Eigen::Vector2d&amp;gt; &amp;gt; Point2DVector;&lt;br /&gt;
&lt;br /&gt;
Point2DVector Generate2DPoints();&lt;br /&gt;
&lt;br /&gt;
int main(int argc, char *argv[])&lt;br /&gt;
{&lt;br /&gt;
  return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Point2DVector Generate2DPoints()&lt;br /&gt;
{&lt;br /&gt;
  Point2DVector points;&lt;br /&gt;
&lt;br /&gt;
  float x,y;&lt;br /&gt;
&lt;br /&gt;
  x=282;y=274;&lt;br /&gt;
  points.push_back(Eigen::Vector2d(x,y));&lt;br /&gt;
&lt;br /&gt;
  x=397;y=227;&lt;br /&gt;
  points.push_back(Eigen::Vector2d(x,y));&lt;br /&gt;
&lt;br /&gt;
  x=577;y=271;&lt;br /&gt;
  points.push_back(Eigen::Vector2d(x,y));&lt;br /&gt;
&lt;br /&gt;
  x=462;y=318;&lt;br /&gt;
  points.push_back(Eigen::Vector2d(x,y));&lt;br /&gt;
&lt;br /&gt;
  x=270;y=479;&lt;br /&gt;
  points.push_back(Eigen::Vector2d(x,y));&lt;br /&gt;
&lt;br /&gt;
  x=450;y=523;&lt;br /&gt;
  points.push_back(Eigen::Vector2d(x,y));&lt;br /&gt;
&lt;br /&gt;
  x=566;y=475;&lt;br /&gt;
  points.push_back(Eigen::Vector2d(x,y));&lt;br /&gt;
&lt;br /&gt;
  return points;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CMakeLists.txt==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cmake&amp;quot;&amp;gt;&lt;br /&gt;
cmake_minimum_required(VERSION 2.6)&lt;br /&gt;
&lt;br /&gt;
PROJECT(STLVector)&lt;br /&gt;
include_directories(/media/portable/src/Eigen)&lt;br /&gt;
SET(CMAKE_CXX_FLAGS &amp;quot;${CMAKE_CXX_FLAGS} -DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET&amp;quot;)&lt;br /&gt;
ADD_EXECUTABLE(STLVector STLVector.cpp )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Daviddoria</name></author>	</entry>

	</feed>