This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Matrix sorting


Rampas, Tomas writes:
 > 
 > Hello,
 > I have a question about matrix.
 > I have a gsl_matrix object an I would like to sort that matrix along the
 > specific column. Is it posible in GSL?
 > I tried gsl_heapsort and STL qsort but with not success.

I suggest using gsl_matrix_column to make a vector view of the column
and then gsl_sort_vector_index.  See the manual for details.

regards,
-- 
Brian Gough

Network Theory Ltd            
15 Royal Park                 
Bristol BS8 3AL               
United Kingdom                

Tel: +44 (0)117 3179309 
Fax: +44 (0)117 9048108              
Web: http://www.network-theory.co.uk/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]