Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102016824
Tutorial_PartialLU_solve.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
Sun, Feb 16, 05:39
Size
401 B
Mime Type
text/x-c
Expires
Tue, Feb 18, 05:39 (2 d)
Engine
blob
Format
Raw Data
Handle
24248988
Attached To
rDLMA Diffusion limited mixed aggregation
Tutorial_PartialLU_solve.cpp
View Options
#include <Eigen/Core>
#include <Eigen/LU>
#include <iostream>
using namespace std;
using namespace Eigen;
int main()
{
Matrix3f A;
Vector3f b;
A << 1,2,3, 4,5,6, 7,8,10;
b << 3, 3, 4;
cout << "Here is the matrix A:" << endl << A << endl;
cout << "Here is the vector b:" << endl << b << endl;
Vector3f x = A.lu().solve(b);
cout << "The solution is:" << endl << x << endl;
}
Event Timeline
Log In to Comment