Posted Thursday, June 08, 2006 4:30 PM
|
|
|
|
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
|
|
|
|
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 |
|
|
|
|
|