Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102324155
Tutorial_BlockOperations_colrow.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:52
Size
390 B
Mime Type
text/x-c
Expires
Fri, Feb 21, 12:52 (2 d)
Engine
blob
Format
Raw Data
Handle
24331135
Attached To
rDLMA Diffusion limited mixed aggregation
Tutorial_BlockOperations_colrow.cpp
View Options
#include <Eigen/Dense>
#include <iostream>
using
namespace
std
;
int
main
()
{
Eigen
::
MatrixXf
m
(
3
,
3
);
m
<<
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
;
cout
<<
"Here is the matrix m:"
<<
endl
<<
m
<<
endl
;
cout
<<
"2nd Row: "
<<
m
.
row
(
1
)
<<
endl
;
m
.
col
(
2
)
+=
3
*
m
.
col
(
0
);
cout
<<
"After adding 3 times the first column into the third column, the matrix m is:
\n
"
;
cout
<<
m
<<
endl
;
}
Event Timeline
Log In to Comment