Bluebit Software
Bluebit Software Support Forum
 Home          Members     Calendar     Who's On

Welcome Guest ( Login | Register )
        



VS 2005 C++ - how to use "Eigen" ?? Expand / Collapse
Message
Posted Thursday, June 08, 2006 4:30 PM Post #108
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
hi
i`m using Visual studio 2005 C++
and i have problem with using Eigen
what code should I write to get eigenvalues and eigenvectors from matrix A?

here is my code:

Matrix * A = new MatrixClass();
Matrix * B = new MatrixClass();
Matrix * C = new MatrixClass();
Matrix * D = new MatrixClass();
Matrix * E = new MatrixClass();
Matrix * F = new MatrixClass();

A->Size(3,3);
B->Size(3,1);
C->Size(3,1);
D->Size(3,3);
E->Size(3,3);
F->Size(3,3);

A->set_Item(0,0,1);
A->set_Item(0,1,2);
A->set_Item(0,2,3);
A->set_Item(1,0,4);
A->set_Item(1,1,5);
A->set_Item(1,2,6);
A->set_Item(2,0,7);
A->set_Item(2,1,8);
A->set_Item(2,2,9);

Console::WriteLine("My matrix:");
Console::WriteLine(A->GetString(3,""));

Console::Read();



how use EIGEN ???
becouse when I use:

"A->Eigen(__gc (*B), __gc*(C), __gc *(D), __gc *(E));"

compiler shows me error
Posted Friday, June 09, 2006 5:47 AM Post #329
 

Bluebit SupportBluebit SupportBluebit SupportBluebit SupportBluebit SupportBluebit SupportBluebit SupportBluebit Support
Hello,

You should use double indirection since the matrix variables are passed by reference. Try this:

A->Eigen( &B, &C ,&D, &E );

By the way. .NET Matrix Library is one of our products which is targeted to .NET development. You could try use it instead of Matrix ActiveX Component which is targeted to COM.





Trifon Triantafillidis

Lead Developer

Bluebit Software

« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Trifon

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 12:09pm

Powered by InstantForum.NET v4.1.4 © 2010
Execution: 0.219. 9 queries. Compression Disabled.
.NET Matrix Library