Logo Search packages:      
Sourcecode: eigen3 version File versions  Download package

DenseBase_template_int_middleCols.cpp
#include <Eigen/Core>
#include <iostream>

using namespace Eigen;
using namespace std;

int main(void)
{
    int const N = 5;
    MatrixXi A(N,N);
    A.setRandom();
    cout << "A =\n" << A << '\n' << endl;
    cout << "A(:,1..3) =\n" << A.middleCols<3>(1) << endl;
    return 0;
}

Generated by  Doxygen 1.6.0   Back to index