Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102321504
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
Wed, Feb 19, 12:03
Size
529 B
Mime Type
text/x-c
Expires
Fri, Feb 21, 12:03 (2 d)
Engine
blob
Format
Raw Data
Handle
24330379
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