From 4f9af9bc93b1859d13ad9fa0c1690a82376cbbcb Mon Sep 17 00:00:00 2001 From: fjosw Date: Fri, 10 Dec 2021 14:43:00 +0000 Subject: [PATCH] Documentation updated --- docs/pyerrors/linalg.html | 70 --------------------------------------- docs/search.js | 2 +- 2 files changed, 1 insertion(+), 71 deletions(-) diff --git a/docs/pyerrors/linalg.html b/docs/pyerrors/linalg.html index 9aa84cc3..c3ff23ca 100644 --- a/docs/pyerrors/linalg.html +++ b/docs/pyerrors/linalg.html @@ -77,9 +77,6 @@
  • svd
  • -
  • - slogdet -
  • @@ -401,31 +398,6 @@ return (u, s, vh) -def slogdet(obs, **kwargs): - """Computes the determinant of a matrix of Obs via np.linalg.slogdet.""" - def _mat(x): - dim = int(np.sqrt(len(x))) - if np.sqrt(len(x)) != dim: - raise Exception('Input has to have dim**2 entries') - - mat = [] - for i in range(dim): - row = [] - for j in range(dim): - row.append(x[j + dim * i]) - mat.append(row) - - (sign, logdet) = anp.linalg.slogdet(np.array(mat)) - return sign * anp.exp(logdet) - - if isinstance(obs, np.ndarray): - return derived_observable(_mat, (1 * (obs.ravel())).tolist(), **kwargs) - elif isinstance(obs, list): - return derived_observable(_mat, obs, **kwargs) - else: - raise TypeError('Unproper type of input.') - - # Variants for numerical differentiation def _num_diff_mat_mat_op(op, obs, **kwargs): @@ -1073,48 +1045,6 @@ Obs valued. - -
    -
    #   - - - def - slogdet(obs, **kwargs): -
    - -
    - View Source -
    def slogdet(obs, **kwargs):
    -    """Computes the determinant of a matrix of Obs via np.linalg.slogdet."""
    -    def _mat(x):
    -        dim = int(np.sqrt(len(x)))
    -        if np.sqrt(len(x)) != dim:
    -            raise Exception('Input has to have dim**2 entries')
    -
    -        mat = []
    -        for i in range(dim):
    -            row = []
    -            for j in range(dim):
    -                row.append(x[j + dim * i])
    -            mat.append(row)
    -
    -        (sign, logdet) = anp.linalg.slogdet(np.array(mat))
    -        return sign * anp.exp(logdet)
    -
    -    if isinstance(obs, np.ndarray):
    -        return derived_observable(_mat, (1 * (obs.ravel())).tolist(), **kwargs)
    -    elif isinstance(obs, list):
    -        return derived_observable(_mat, obs, **kwargs)
    -    else:
    -        raise TypeError('Unproper type of input.')
    -
    - -
    - -

    Computes the determinant of a matrix of Obs via np.linalg.slogdet.

    -
    - -