Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120042173
tut_arithmetic_redux_basic.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jul 1, 13:10
Size
529 B
Mime Type
text/x-c
Expires
Thu, Jul 3, 13:10 (2 d)
Engine
blob
Format
Raw Data
Handle
27130270
Attached To
rDLMA Diffusion limited mixed aggregation
tut_arithmetic_redux_basic.cpp
View Options
#include <iostream>
#include <Eigen/Dense>
using namespace std;
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;
}
Event Timeline
Log In to Comment