mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 03:53:41 +02: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:
|
else:
|
||||||
A[n, m] = entry
|
A[n, m] = entry
|
||||||
B[n, m] = 0.0
|
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:
|
if kwargs.get('num_grad') is True:
|
||||||
op_big_matrix = _num_diff_mat_mat_op(op, big_matrix, **kwargs)
|
op_big_matrix = _num_diff_mat_mat_op(op, big_matrix, **kwargs)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue