This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Matrix sorting
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: "Rampas, Tomas" <Rampas at gedas dot cz>
- Cc: "'gsl-discuss at sources dot redhat dot com'" <gsl-discuss at sources dot redhat dot com>
- Date: Wed, 16 Jul 2003 15:29:30 +0100
- Subject: Re: Matrix sorting
- References: <D0F5E6E465BA564A8679767BB3C77AFC793D2A@CZGDASMBX002.cz.gedas-grp>
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/