2011/8/25 Sébastien Brisard <sebastien.bris...@m4x.org>

> Hi Ted,
>
> >
> > You missed my suggestion.
> >
> are you referring to the thread named "New method: "addToEntry" in
> "RealVector""?
> If yes, I initially thought that what you suggested was pretty similar
> to the Visitor approach.
> Thanks to the above message, I now understand that your suggestion is
> the Visitor approach PLUS the ability to provide different "views" of
> the same matrix/vector.
> Is that correct?


Yes.  Views are critical to the suggestion because they control where the
visitor goes.

Allowing more general visitors than a pure element function is probably a
great idea.  It is not uncommon to need the indexes of the element.


> Should I dive into Mahout to understand more on this topic?
>

Your choice.

Here is some (very) recent code that makes use of these capabilities:

https://github.com/tdunning/mahout/blob/new-stochastic/math/src/main/java/org/apache/mahout/math/CholeskyDecomposition.java

https://github.com/tdunning/mahout/blob/new-stochastic/math/src/main/java/org/apache/mahout/math/ssvd/SequentialBigSvd.java

Reply via email to