feat: linalg.jack_matmul now also works with irregular monte carlo

chains
This commit is contained in:
Fabian Joswig 2021-11-18 11:17:20 +00:00
parent 0954ebee6e
commit 28bf0f1701
2 changed files with 15 additions and 9 deletions

View file

@ -1559,7 +1559,7 @@ def load_object(path):
return pickle.load(file)
def import_jackknife(jacks, name):
def import_jackknife(jacks, name, idl=None):
"""Imports jackknife samples and returns an Obs
Parameters
@ -1573,7 +1573,7 @@ def import_jackknife(jacks, name):
length = len(jacks) - 1
prj = (np.ones((length, length)) - (length - 1) * np.identity(length))
samples = jacks[1:] @ prj
new_obs = Obs([samples], [name])
new_obs = Obs([samples], [name], idl=idl)
new_obs._value = jacks[0]
return new_obs