matrix-matrix product

Asked by Erwan Liberge

Hello,

I am generating 2 matrix using :
Ah=assemble(av)
and
Bh=assemble(bv).

Is there any function to compute Dh=Ah*Bh ? I find matrix-vector but not matrix-matrix.

Ah and Bh are generic (sparse) matrix.

Thanks

Erwan

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Kent-Andre Mardal
Solved:
Last query:
Last reply:
Revision history for this message
Best Kent-Andre Mardal (kent-and) said :
#1

In Python you may do matrix-matrix product using the fenics add-on module
cbc.block,
see launchpad/cbc.block.
In C++, several of the backends support matrix-matrix products, but you will
need to cast to the proper backend type and use the backend functionality.

Kent

On 4 April 2013 17:06, Erwan Liberge
<email address hidden>wrote:

> New question #225873 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/225873
>
> Hello,
>
> I am generating 2 matrix using :
> Ah=assemble(av)
> and
> Bh=assemble(bv).
>
> Is there any function to compute Dh=Ah*Bh ? I find matrix-vector but not
> matrix-matrix.
>
> Ah and Bh are generic (sparse) matrix.
>
> Thanks
>
> Erwan
>
> --
> You received this question notification because you are a member of
> DOLFIN Team, which is an answer contact for DOLFIN.
>

Revision history for this message
Erwan Liberge (erwan-liberge) said :
#2

Thanks Kent-Andre Mardal, that solved my question.