Boost logo

Ublas :

Subject: Re: [ublas] Distinct rows in a matrix
From: Pawe³ Szlendak (ogee_at_[hidden])
Date: 2008-11-03 14:52:25


Gunter Winkler pisze:
> Am Sonntag, 2. November 2008 16:34 schrieb Pawe³ Szlendak:
>
>> I'm trying to follow your idea, however it seems that there is no
>> '==' operator for class matrix_row defined.
>>
>
> That's correct. You have to implement both comparison operators using a
> loop.
>
> mfg
> Gunter
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
>
I've implemented '<' operator for matrix_row (wrapped matrix_row in
another class), and used std::set container to get rid of duplicate rows
and it worked!
Thanks for help.