pihnn.utils.scalar_loss#

pihnn.utils.scalar_loss(boundary, model, t)#

Called by pihnn.utils.PIHNNloss() if one aims to solve the Laplace or biharmonic problem.

Parameters:
Returns:

loss (float) - Computed loss.