Quote:
I am using ALGLIB for calculating eigenvalues and CSML for converting double[,] var into matrix.
Code:
double[,] dataset = new VarianceAndCovariance().buildMatrix();
double[,] var = new VarianceAndCovariance().eigenvalues(dataset);
Matrix matrix = new Matrix(var);
double [] var1 = new double[1];
double [,] var2 = new double[68,2];
alglib.smatrixevd(var, 68, 1, true,out var1,out var2);
Quote:
Now this statement is returning eigenvalues(i.e. var1) in ascending order, but i want it to return in default sorting of matrix or normal mode not in ascending or descending order. How can i get eigenvalues without any sorting.
alglib.smatrixevd() function returns eigenvalues in ascending order, i want it according to the input matrix or in other words i dont want it to be sorted.
Kindly Help me i need it for my project