Files
eigen/doc/snippets/MatrixBase_replicate_int_int.cpp
2026-05-04 00:36:12 +00:00

8 lines
246 B
C++

// SPDX-FileCopyrightText: The Eigen Authors
// SPDX-License-Identifier: MPL-2.0
Vector3i v = Vector3i::Random();
cout << "Here is the vector v:" << endl << v << endl;
cout << "v.replicate(2,5) = ..." << endl;
cout << v.replicate(2, 5) << endl;