[petsc-dev] Questions about MatMatTransposeMult/MatMatMultTranspose

Dmitry Karpeev karpeev at mcs.anl.gov
Tue Nov 1 12:44:06 CDT 2011


On Tue, Nov 1, 2011 at 12:40 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> On Tue, Nov 1, 2011 at 11:28, Dmitry Karpeev <karpeev at mcs.anl.gov> wrote:
>
>> Or I can stick with a variadic function and pass in the number of
>> arguments:
>> PetscMethodRegister(void (*f)(void), PetscInt nArgs, const char*
>> arg1Type, ...), etc.
>>
>
> That's fine, but there should probably be a context with which it's
> registered.
>
> PetscMethodRegister(PetscMultiFList MatMFList,void(*f)(void),const char
> *opname,PetscInt nargs,const char *arg1type,...);
>
>
> In some ways, it would be nice to have a separate PetscMultiFList for each
> opname. An alternative is to have one per type and dynamically create the
> entry for each opname.
>
> I think I like the latter option better.

Dmitry.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111101/f315653f/attachment.html>


More information about the petsc-dev mailing list