COSC-4P80-Assignment-2/lib/eigen-3.4.0/doc/snippets/MatrixBase_ones_int.cpp

3 lines
77 B
C++

cout << 6 * RowVectorXi::Ones(4) << endl;
cout << VectorXf::Ones(2) << endl;