Commit 18ab70b6 authored by Philipp Frank's avatar Philipp Frank
Browse files

start with text

parent 91c95868
...@@ -90,6 +90,14 @@ class EnergyAdapter(Energy): ...@@ -90,6 +90,14 @@ class EnergyAdapter(Energy):
class StochasticEnergyAdapter(Energy): class StochasticEnergyAdapter(Energy):
"""A variant of `EnergyAdapter` that provides the energy interface for an
operator with a scalar target where parts of the imput are averaged
instead of optmized. Specifically, for the input corresponding to `keys`
a set of standart normal distributed samples are drawn and each gets
partially inserted into `bigop`. The results are averaged and represent a
stochastic average of an energy with the remaining subdomain being the DOFs
that are considered to be optimization parameters.
"""
def __init__(self, position, bigop, keys, local_ops, n_samples, comm, nanisinf, def __init__(self, position, bigop, keys, local_ops, n_samples, comm, nanisinf,
_callingfrommake=False): _callingfrommake=False):
if not _callingfrommake: if not _callingfrommake:
......
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