mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chameera Wijebandara <chameerawijeband...@gmail.com>
Subject Re: Equality of two DenseMatrix objects
Date Sun, 29 Dec 2013 16:49:59 GMT
Sebastian,
Yes It's not enought to check the reference. i mean DenseMatrix*.*equals()
methord does that and it cannot use for check equity is that wrong?



On Sun, Dec 29, 2013 at 8:40 AM, Sebastian Schelter <ssc@apache.org> wrote:

> 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
> >
>
>


-- 
----------------------------------------------------------
Chameera Wijebandara,
Undergraduate Department of Computer Science and Engineering,
University of Moratuwa,
Sri Lanka.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message