Re: PlusMult and other functions

2013-04-12 Thread Jake Mannix
So we should make sure that we don't bite ourselves with any primitive <-> object boxing when interfacing nicely with guava... It should be fine, but there are places where it will not (e.g. passing a Function to a Vector.apply() would, if allowed, probably result in a lot of ephemeral object crea

Re: PlusMult and other functions

2013-04-12 Thread Ted Dunning
__ > From: Sebastian Schelter > To: dev@mahout.apache.org > Sent: Friday, April 12, 2013 12:24 PM > Subject: Re: PlusMult and other functions > > > +1 > Am 12.04.2013 18:17 schrieb "Robin Anil" : > > > +1 to both the new methods and extending Gua

Re: PlusMult and other functions

2013-04-12 Thread Suneel Marthi
d create a JIRA for this issue I can also add my stuff under the same JIRA. Suneel From: Sebastian Schelter To: dev@mahout.apache.org Sent: Friday, April 12, 2013 12:24 PM Subject: Re: PlusMult and other functions +1 Am 12.04.2013 18:17 schrieb "Robi

Re: PlusMult and other functions

2013-04-12 Thread Sebastian Schelter
+1 Am 12.04.2013 18:17 schrieb "Robin Anil" : > +1 to both the new methods and extending Guava functions > > Robin Anil | Software Engineer | +1 312 869 2602 | Google Inc. > > > On Fri, Apr 12, 2013 at 6:55 AM, Dan Filimon >wrote: > > > I'm adding interfaces for DoubleDoubleFunctions with the fol

Re: PlusMult and other functions

2013-04-12 Thread Robin Anil
+1 to both the new methods and extending Guava functions Robin Anil | Software Engineer | +1 312 869 2602 | Google Inc. On Fri, Apr 12, 2013 at 6:55 AM, Dan Filimon wrote: > I'm adding interfaces for DoubleDoubleFunctions with the following special > properties: > f(x, 0) = x for any x > f(0, y

PlusMult and other functions

2013-04-12 Thread Dan Filimon
I'm adding interfaces for DoubleDoubleFunctions with the following special properties: f(x, 0) = x for any x f(0, y) = 0 for any y so that we can speed up sparse vector operations in these cases [1]. Doing this, I'm also updating the existing functions in Functions.java to support the new interfac