Skip to content

Commit

Permalink
Backport StoT fix from @thliebig
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3xdh committed Mar 19, 2024
1 parent c90ed2c commit d95b85e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/math/matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1933,7 +1933,7 @@ matrix twoport (matrix m, char in, char out) {
res.set (0, 0, m (0, 1) - m (0, 0) * m (1, 1) / d);
res.set (0, 1, m (0, 0) / d);
res.set (1, 0, -m (1, 1) / d);
res.set (0, 1, 1.0 / d);
res.set (1, 1, 1.0 / d);
break;
case 'A': // S to A
res = stoa (m);
Expand All @@ -1959,7 +1959,7 @@ matrix twoport (matrix m, char in, char out) {
res.set (0, 0, m (0, 1) / d);
res.set (0, 1, m (0, 0) - m (0, 1) * m (1, 0) / d);
res.set (1, 0, 1.0 / d);
res.set (0, 1, -m (1, 0) / d);
res.set (1, 1, -m (1, 0) / d);
break;
case 'T': // T to T
res = m;
Expand Down

0 comments on commit d95b85e

Please sign in to comment.