-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
One possible idea to speed up the C attribute of Circuit class #969
Labels
Comments
I don't remember why the |
I'm not sure if my testing method is correct, but when I executed the code above, this was the result I obtained (I believe all tests have passed).
|
jhillairet
added a commit
to jhillairet/scikit-rf
that referenced
this issue
Jan 27, 2024
Following suggested changes in scikit-rf#969
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Although the performance of circuit computing S-parameters has been significantly improved, I still want to try whether it is possible to further enhance the calculation performance.
Related to #574 and #575
I noticed that the performance of the X property of Circuit class has been improved, so focused on the C property of Circuit class.
In the current circuit.py, there is a section of for loop code within the C property. Due to the use of the product function, the loop is executed a large number of times. Therefore, I am wondering if it is possible to accelerate it using numpy's broadcasting feature.
Existing code:
Improved code:
However, it was found that only when the network in the circuit is connected internally, there is an efficiency improvement of about 10%. Therefore, I would like to know if this acceleration method is truly effective and if it may result in unexpected errors.
The text was updated successfully, but these errors were encountered: