commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Sterijevski <gsterijev...@gmail.com>
Subject Re: [Math] "iterator" and "sparseIterator" in "RealVector" hierarchy
Date Tue, 16 Aug 2011 01:52:00 GMT
Forgive me for pushing my nose under the tent... I couldn't resist.

I think Gilles is saying that each specialization of the matrix/vector
objects would need to support pre (and post) multiplication with a dense. So
the type issue would not be problematic.

On Mon, Aug 15, 2011 at 6:34 PM, Ted Dunning <ted.dunning@gmail.com> wrote:

> No.
>
> You can't.  This is because the type is lost as you enter the generic
> library.
>
> On Mon, Aug 15, 2011 at 4:28 PM, Gilles Sadowski <
> gilles@harfang.homelinux.org> wrote:
>
> > > They know that their own object is dense, but they don't know what kind
> > of
> > > input they were given.  They should still run fast if the input is
> > sparse.
> >
> > Couldn't we still rely on polymorphism by implementing "preTimes":
> >   unknown.preTimes(dense)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message