mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Schelter <...@apache.org>
Subject Re: Equality of two DenseMatrix objects
Date Sun, 29 Dec 2013 16:40:40 GMT
Chameera,

This is wrong. It's not enought to check the reference, two different
instances can be semantically equivalent,

A dense matrix represents its entries in a two dimensional double array.
You have to check for the equality of these arrays.

--sebastian

On 29.12.2013 17:14, Chameera Wijebandara wrote:
> Hi Tharindu
> 
> In the DenseMatrix class does not implement equals method so it use
> Object.equals witch check the reference.
> You have implement equals method by overriding Object.equals method.
> 
> Thanks
>   Chameera
> 


Mime
View raw message