compile_Tutorial_AdvancedInitialization_Zero.cpp
Go to the documentation of this file.
00001 #include <Eigen/Core>
00002 #include <Eigen/LU>
00003 #include <Eigen/QR>
00004 #include <Eigen/Cholesky>
00005 #include <Eigen/Geometry>
00006 #include <Eigen/Jacobi>
00007 #include <Eigen/Eigenvalues>
00008 #include <iostream>
00009 
00010 using namespace Eigen;
00011 using namespace std;
00012 
00013 int main(int, char**)
00014 {
00015   cout.precision(3);
00016   std::cout << "A fixed-size array:\n";
00017 Array33f a1 = Array33f::Zero();
00018 std::cout << a1 << "\n\n";
00019 
00020 
00021 std::cout << "A one-dimensional dynamic-size array:\n";
00022 ArrayXf a2 = ArrayXf::Zero(3);
00023 std::cout << a2 << "\n\n";
00024 
00025 
00026 std::cout << "A two-dimensional dynamic-size array:\n";
00027 ArrayXXf a3 = ArrayXXf::Zero(3, 4);
00028 std::cout << a3 << "\n";
00029 
00030   return 0;
00031 }


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:30:58