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

5 lines
179 B
C++

Vector3i v = Vector3i::Random();
cout << "Here is the vector v:" << endl << v << endl;
cout << "v.rowwise().replicate(5) = ..." << endl;
cout << v.rowwise().replicate(5) << endl;