mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Clang-format tests, examples, libraries, benchmarks, etc.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
3252ecc7a4
commit
46e9cdb7fe
@@ -1,12 +1,11 @@
|
||||
#include <Eigen/Core>
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
int const N = 5;
|
||||
Eigen::MatrixXi A(N,N);
|
||||
A.setRandom();
|
||||
std::cout << "A =\n" << A << '\n' << std::endl;
|
||||
std::cout << "A(1..3,:) =\n" << A.middleCols(1,3) << std::endl;
|
||||
return 0;
|
||||
int main() {
|
||||
int const N = 5;
|
||||
Eigen::MatrixXi A(N, N);
|
||||
A.setRandom();
|
||||
std::cout << "A =\n" << A << '\n' << std::endl;
|
||||
std::cout << "A(1..3,:) =\n" << A.middleCols(1, 3) << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user