_apply_stiffness_transpose_operator
: uses einsum in a way that causes high cost
#143
Labels
_apply_stiffness_transpose_operator
: uses einsum in a way that causes high cost
#143
Since our
einsum
is not smart (it doesn't identify possible common subexpressions), this:grudge/grudge/op.py
Lines 296 to 306 in 1c44c4b
amounts to computing the rst derivatives once per dimension. (Together with #141, we're computing them 9 times in 3D, when once would suffice.) The problem is that the sum is computed once per
d
, when it is actually independent ofd
.This is something I should have caught during review of #74.
cc @thomasgibson @lukeolson
The text was updated successfully, but these errors were encountered: