From 4f79d69ce44aeb10dc16977e25e84ef81d1f7ddf Mon Sep 17 00:00:00 2001
From: Philipp Arras <parras@mpa-garching.mpg.de>
Date: Sun, 20 Jan 2019 22:19:14 +0100
Subject: [PATCH] Add docs

---
 nifty5/extra.py | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/nifty5/extra.py b/nifty5/extra.py
index 359454338..02dd481de 100644
--- a/nifty5/extra.py
+++ b/nifty5/extra.py
@@ -74,6 +74,26 @@ def _check_linearity(op, domain_dtype, atol, rtol):
 
 def consistency_check(op, domain_dtype=np.float64, target_dtype=np.float64,
                       atol=0, rtol=1e-7):
+    """Checks whether times(), adjoint_times(), inverse_times() and
+    adjoint_inverse_times() (if in capability list) is implemented
+    consistently. Additionally, it checks whether the operator is linear
+    actually.
+
+    Parameters
+    ----------
+    op : LinearOperator
+        Operator which shall be checked.
+    domain_dtype : FIXME
+        The data type of the random vectors in the operator's domain. Default
+        is `np.float64`.
+    target_dtype : FIXME
+        The data type of the random vectors in the operator's target. Default
+        is `np.float64`.
+    atol : float
+        FIXME. Default is 0.
+    rtol : float
+        FIXME. Default is 0.
+    """
     if not isinstance(op, LinearOperator):
         raise TypeError('This test tests only linear operators.')
     _check_linearity(op, domain_dtype, atol, rtol)
@@ -137,8 +157,10 @@ def _check_consistency(op, loc, tol, ntries, do_metric):
 
 
 def check_value_gradient_consistency(op, loc, tol=1e-8, ntries=100):
+    """FIXME"""
     _check_consistency(op, loc, tol, ntries, False)
 
 
 def check_value_gradient_metric_consistency(op, loc, tol=1e-8, ntries=100):
+    """FIXME"""
     _check_consistency(op, loc, tol, ntries, True)
-- 
GitLab