mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01:00
Complex matrix operations now work with ndarrays instead of numpy
matrices
This commit is contained in:
parent
526dceef1c
commit
7b0645bda0
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ def mat_mat_op(op, obs, **kwargs):
|
|||
else:
|
||||
A[n, m] = entry
|
||||
B[n, m] = 0.0
|
||||
big_matrix = np.bmat([[A, -B], [B, A]])
|
||||
big_matrix = np.block([[A, -B], [B, A]])
|
||||
if kwargs.get('num_grad') is True:
|
||||
op_big_matrix = _num_diff_mat_mat_op(op, big_matrix, **kwargs)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue