Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102323537
tut_matrix_coefficient_accessors.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:38
Size
343 B
Mime Type
text/x-c
Expires
Fri, Feb 21, 12:38 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24330934
Attached To
rDLMA Diffusion limited mixed aggregation
tut_matrix_coefficient_accessors.cpp
View Options
#include <iostream>
#include <Eigen/Dense>
using namespace Eigen;
int main()
{
MatrixXd m(2,2);
m(0,0) = 3;
m(1,0) = 2.5;
m(0,1) = -1;
m(1,1) = m(1,0) + m(0,1);
std::cout << "Here is the matrix m:\n" << m << std::endl;
VectorXd v(2);
v(0) = 4;
v(1) = v(0) - 1;
std::cout << "Here is the vector v:\n" << v << std::endl;
}
Event Timeline
Log In to Comment