#include <iostream>
#include <Eigen/Dense>
◆ main()
8 cout <<
"Here is mat.sum(): " <<
mat.
sum() << endl;
9 cout <<
"Here is mat.prod(): " <<
mat.prod() << endl;
10 cout <<
"Here is mat.mean(): " <<
mat.mean() << endl;
11 cout <<
"Here is mat.minCoeff(): " <<
mat.minCoeff() << endl;
12 cout <<
"Here is mat.maxCoeff(): " <<
mat.maxCoeff() << endl;
13 cout <<
"Here is mat.trace(): " <<
mat.trace() << endl;
Eigen::SparseMatrix< double > mat
Definition: EigenUnitTest.cpp:10
Scalar sum() const
Definition: SparseRedux.h:30
References Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::sum().