Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

For a scalar field, it is much faster to compute the Laplace-Beltrami operator as μμψ, instead of ddψ. For your example:

sage: nabla = g.connection()
sage: LBpsi = nabla(nabla(psi).up(g)).trace()

takes only 12 s on my computer (and of course yields the same result), see the online notebook.

The slowness you've experienced is due to the lack of optimization in the Hodge dual computation (especially for the Hodge dual of a 6-form, as indicated by the timing in cell 21 of the notebook), which is all the more severe that the dimension is high. This certainly will be improved in some future version. Thanks for pointing it out!