[petsc-dev] MatMatMult double dispatch
Jed Brown
jedbrown at mcs.anl.gov
Fri Oct 28 16:19:33 CDT 2011
On Fri, Oct 28, 2011 at 15:14, Dmitry Karpeev <karpeev at mcs.anl.gov> wrote:
> I think it would, in fact, be useful to consider the triple-dispatch
> problem: if in A*B = C we are reusing C,
> its type might dictate a different implementation. This can be sort of
> hacked with the double-dispatched routine
> internally examining the type of C, and dispatching again, if necessary.
>
Any sufficiently complicated C or Fortran program contains an ad hoc,
informally-specified, bug-ridden, slow implementation of half of Common
Lisp. -- Greenspun's Tenth Rule
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111028/427f7eef/attachment.html>
More information about the petsc-dev
mailing list