[fdfd.eme] fix abcd array construction
This commit is contained in:
parent
f5af0fef55
commit
4913211883
1 changed files with 7 additions and 1 deletions
|
|
@ -55,7 +55,13 @@ def get_abcd(
|
||||||
B = r21 @ t21i
|
B = r21 @ t21i
|
||||||
C = -t21i @ r12
|
C = -t21i @ r12
|
||||||
D = t21i
|
D = t21i
|
||||||
return sparse.block_array(((A, B), (C, D)))
|
return sparse.block_array(
|
||||||
|
[
|
||||||
|
[sparse.csr_array(A), sparse.csr_array(B)],
|
||||||
|
[sparse.csr_array(C), sparse.csr_array(D)],
|
||||||
|
],
|
||||||
|
format='csr',
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def get_s(
|
def get_s(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue