Matrix sorting
Brian Gough
bjg@network-theory.co.uk
Wed Jul 16 14:29:00 GMT 2003
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/
More information about the Gsl-discuss
mailing list