Commit 0dfcda3b authored by Martin Reinecke's avatar Martin Reinecke
Browse files


parent 46c7f781
Pipeline #63100 passed with stages
in 7 minutes and 26 seconds
......@@ -65,6 +65,7 @@ class Squared2NormOperator(EnergyOperator):
return, jac)
return Field.scalar(x.vdot(x))
class QuadraticFormOperator(EnergyOperator):
"""Computes the L2-norm of a Field or MultiField with respect to a
specific kernel given by `endo`.
......@@ -40,4 +40,3 @@ class Log1p(Operator):
return res
jac = DiagonalOperator(1/(1+xval))
return, jac@x.jac)
......@@ -46,10 +46,12 @@ def test_gaussian(field):
energy = ift.GaussianEnergy(domain=field.domain)
ift.extra.check_jacobian_consistency(energy, field)
def test_studentt(field):
energy = ift.StudentTEnergy(domain=field.domain, theta=.5)
ift.extra.check_jacobian_consistency(energy, field, tol=1e-6)
def test_inverse_gamma(field):
field = field.exp()
space = field.domain
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment