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
@@ -2,15 +2,13 @@
|
||||
#include <Eigen/Dense>
|
||||
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int main() {
|
||||
Eigen::Matrix2d mat;
|
||||
mat << 1, 2,
|
||||
3, 4;
|
||||
cout << "Here is mat.sum(): " << mat.sum() << endl;
|
||||
cout << "Here is mat.prod(): " << mat.prod() << endl;
|
||||
cout << "Here is mat.mean(): " << mat.mean() << endl;
|
||||
cout << "Here is mat.minCoeff(): " << mat.minCoeff() << endl;
|
||||
cout << "Here is mat.maxCoeff(): " << mat.maxCoeff() << endl;
|
||||
cout << "Here is mat.trace(): " << mat.trace() << endl;
|
||||
mat << 1, 2, 3, 4;
|
||||
cout << "Here is mat.sum(): " << mat.sum() << endl;
|
||||
cout << "Here is mat.prod(): " << mat.prod() << endl;
|
||||
cout << "Here is mat.mean(): " << mat.mean() << endl;
|
||||
cout << "Here is mat.minCoeff(): " << mat.minCoeff() << endl;
|
||||
cout << "Here is mat.maxCoeff(): " << mat.maxCoeff() << endl;
|
||||
cout << "Here is mat.trace(): " << mat.trace() << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user