Commit e6188b31 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'fix_docstring' into 'NIFTy_5'

fix SquaredNormOperator docstring

See merge request !352
parents 2e63dd00 5dd78b56
......@@ -44,8 +44,8 @@ class EnergyOperator(Operator):
_target = DomainTuple.scalar_domain()
class SquaredNormOperator(EnergyOperator):
"""Computes the L2-norm of the output of an operator.
class Squared2NormOperator(EnergyOperator):
"""Computes the square of the L2-norm of the output of an operator.
......@@ -138,7 +138,7 @@ class GaussianEnergy(EnergyOperator):
raise ValueError("no domain given")
self._mean = mean
if inverse_covariance is None:
self._op = SquaredNormOperator(self._domain).scale(0.5)
self._op = Squared2NormOperator(self._domain).scale(0.5)
self._op = QuadraticFormOperator(inverse_covariance)
self._icov = None if inverse_covariance is None else inverse_covariance
Markdown is supported
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