Elementwise multiplication of Tensors

16 views
Skip to first unread message

Maxi Miller

unread,
Jun 5, 2019, 5:22:32 PM6/5/19
to deal.II User Group
Hei,
is there a function for the elementwise multiplication of Tensors? I could only find functions for the scalar product, but not the schur product.
Thanks!

Wolfgang Bangerth

unread,
Jun 5, 2019, 6:38:59 PM6/5/19
to dea...@googlegroups.com
On 6/5/19 3:22 PM, 'Maxi Miller' via deal.II User Group wrote:
> is there a function for the elementwise multiplication of Tensors? I could
> only find functions for the scalar product, but not the schur product.

You mean to compute
C_ij = A_ij * B_ij
? No, there isn't one right now. But it should easy to implement. In analogy
to scalar_product(), the best approach would probably a global function
schur_product(). Want to give this a try? We'd of course take the patch!

Cheers
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Maxi Miller

unread,
Jun 7, 2019, 7:48:22 AM6/7/19
to deal.II User Group

Wolfgang Bangerth

unread,
Jun 7, 2019, 5:14:08 PM6/7/19
to dea...@googlegroups.com
On 6/7/19 5:48 AM, 'Maxi Miller' via deal.II User Group wrote:
> Something like this: https://github.com/dealii/dealii/pull/8307?

Yes, exactly! Great start!
Reply all
Reply to author
Forward
0 new messages