dsharlet / LiveSPICE

Real time SPICE simulation for audio signals
MIT License
419 stars 61 forks source link

Deduplicate constant solutions #199

Open dsharlet opened 1 year ago

dsharlet commented 1 year ago

In circuits with many power supplies with constants, we often end up with many nodes that all have the same constant value.

@Federerer made a change that helps with grounds specifically in #128, but the same problem exists for other cases, just not quite as frequently.

I think the more general fix for this issue is to add a new class of SolutionSet ConstantSolutions, and solve and substitute for these solutions first.