The characteristic polynomials testing the VelocityAutocorr class and the ViscosityHelfand class use for loops and could benefit from more vectorized operations in NumPy, as explained by @hmacdope i.e. we can set up entire arrays with the values beforehand and then perform the mathematical operations on the entire arrays with NumPy instead of looping through.
This is already done in the actual implementations in each of the classes. It would speed up the tests and potentially improve agreement between the expected test values and the actual implementation.
The characteristic polynomials testing the
VelocityAutocorr
class and theViscosityHelfand
class use for loops and could benefit from more vectorized operations in NumPy, as explained by @hmacdope i.e. we can set up entire arrays with the values beforehand and then perform the mathematical operations on the entire arrays with NumPy instead of looping through.This is already done in the actual implementations in each of the classes. It would speed up the tests and potentially improve agreement between the expected test values and the actual implementation.