You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't run Mv.setup every time an Mv is created (#79)
Before this change, every call to `Ga.mv` would reassign `mv_I`, `mv_basis`, and `mv_x`. There is no reason to do this, if a user asked for `.mv('A', 'vector')` they were not expecting to get a new (but identical) `mv_I`.
Since `Ga.__init__` called `self.mv` anyway, the previous approach didn't actually result in lazy computation anyway.
This change inlines the content of `Mv.setup` into `Ga.__init__`, and changes `Mv.setup` to just pull out the properties computed by `__init__`.
0 commit comments