Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120062608
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
Tue, Jul 1, 16:57
Size
390 B
Mime Type
text/x-c
Expires
Thu, Jul 3, 16:57 (2 d)
Engine
blob
Format
Raw Data
Handle
27133455
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