tut_arithmetic_redux_basic.cpp File Reference
#include <iostream>
#include <Eigen/Dense>

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
5  {
6  Eigen::Matrix2d mat;
7  mat << 1, 2, 3, 4;
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;
14 }
Eigen::SparseMatrix< double > mat
Definition: EigenUnitTest.cpp:10
Scalar sum() const
Definition: SparseRedux.h:30

References Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::sum().