mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-06-30 16:59:27 +02:00
feat: linalg.jack_matmul now also works with irregular monte carlo
chains
This commit is contained in:
parent
0954ebee6e
commit
28bf0f1701
2 changed files with 15 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue