mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
tests: test for Corr.matrix_symmetric added.
This commit is contained in:
parent
d3e72ef7d4
commit
165e294b90
1 changed files with 12 additions and 0 deletions
|
@ -278,6 +278,18 @@ def test_matrix_corr():
|
|||
corr_0.matrix_symmetric()
|
||||
|
||||
|
||||
def test_matrix_symmetric():
|
||||
corr_aa = _gen_corr(1)
|
||||
corr_ab = _gen_corr(0.3)
|
||||
corr_ba = _gen_corr(0.2)
|
||||
corr_bb = _gen_corr(0.8)
|
||||
corr_mat = pe.Corr(np.array([[corr_aa, corr_ab], [corr_ba, corr_bb]]))
|
||||
|
||||
sym_corr_mat = corr_mat.matrix_symmetric()
|
||||
|
||||
assert np.all([np.all(o == o.T) for o in sym_corr_mat])
|
||||
|
||||
|
||||
def test_hankel():
|
||||
corr_content = []
|
||||
for t in range(8):
|
||||
|
|
Loading…
Add table
Reference in a new issue