mahout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: A Bunch of Vector questions
Date Thu, 11 Jun 2009 11:13:37 GMT

On Jun 11, 2009, at 2:43 AM, Sean Owen wrote:

> Why two flavors of this method?
>
> Implementing equals() to return true across classes is indeed
> sometimes tricky or problematic, but here, seems exactly the right
> thing to do, for the same reason two Lists of different
> implementations can be equals().

Hmmm, guess I hadn't thought about it that way.  That makes sense, too.

>
> On Thu, Jun 11, 2009 at 3:15 AM, Grant  
> Ingersoll<gsingers@apache.org> wrote:
>> So, I think maybe instead of allowing equals() to return true across
>> implementations, we could add a static method that compares two  
>> Vectors and
>> returns true, something like:
>>
>> static boolean equivalent(Vector a, Vector b)
>>
>>
>> -Grant
>>



Mime
View raw message