Open chillenzer opened 3 months ago
This will throw an error imo cause there is no setter for eigenvalues
Please note the underscores in the variable name discriminating it from the property.
Ahh.. I missed that. Actually this is a pretty good idea in terms of keeping the variable privative and the user unable to being able to modify it besides caching
Will open a PR for the same
Resolved in #41 for eigenvalues. I will be doing the same for few more variable like p_x, p_t as well
As we're handling numpy arrays mostly, attempting to do this one should be aware of https://stackoverflow.com/questions/60810463/is-this-a-correct-way-to-create-a-read-only-view-of-a-numpy-array.
The standard way to use properties would be something like this
We should come back to this if querying the eigenvalues ever becomes a bottleneck.