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 <[email protected]> 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.
