Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Mahout, mail # dev - removal of addTo() in vectors


Copy link to this message
-
Re: removal of addTo() in vectors
Jake Mannix 2011-09-06, 17:01
On Tue, Sep 6, 2011 at 9:35 AM, Ted Dunning <[EMAIL PROTECTED]> wrote:

> Because it is redundant.  Jake's testing suggestion is still good.
No, doesn't work.  It works on Vector.assign(DoubleFunction), but totally
fails on
Vector.assign(DoubleDoubleFunction, Vector).  For this, you need to verify
that
f(0, a) == a for all a.  I guess you could try a few, but you could fail,
right?

The only way to know for sure is to have a marker interface for
DoubleDoubleFunction
which designated that it is LeftZeroPreserving or something.

  -jake