Boost logo

Ublas :

Subject: Re: [ublas] Distinct rows in a matrix
From: Matwey V. Kornilov (matwey.kornilov_at_[hidden])
Date: 2008-10-30 12:55:19


Pawe? Szlendak wrote:

> I want to evaluate how many distinct rows it contains. In this simple
> example the answer should be:
>
> 2 distinct rows -> [1 2 3], [4 5 6]

Do you mean 'linearly independent'? It seems like you can calculate rank of
the matrix using the lu_factorizating functions.