hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon" <edwardy...@apache.org>
Subject Re: About Vector/Matrix operation
Date Fri, 14 Jun 2013 00:34:56 GMT
Yes we can.

On Fri, Jun 14, 2013 at 5:32 AM, Yexi Jiang <yexijiang@gmail.com> wrote:
> I read some of the code from apache mahout and find that their
> Vector/Matrix contain some useful methods. These methods borrow the style
> of functional programming by allowing a function to apply to all the
> elements of a Vector/Matrix.
>
> For example, given a matrix m, if we want to apply a function f(x) to all
> the elements, we can simply use *m.assign(DoubleDoubleFunction f)* instead
> of a nested loop. This style can simply the coding, especially for those
> algorithms where Vector/Matrix operations are heavily used.
>
> I'm wondering can we also add such methods as well as the associated
> classes?
>
> Regards,
> Yexi



--
Best Regards, Edward J. Yoon
@eddieyoon

Mime
View raw message