-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
Description
Hi @prasant94 - The initial Cholesky stuff looks good, but I think we should try to convert this to a more "functional" interface.
By which I mean:
- There should be no public mutator functions (e.g.
setExpectedMaxSize) - any such values should be set as final fields when objects are constructed. It's OK to mutate as an implementation detail of course - Immutable result objects should be returned from decompositions
- There is a pure functional interface to make the decomposition happen.
- API users should never need to use anything from the "*.impl" packages - this should be purely for implementation details
As an example, I've converted the old Cholesky code to return a CholeskyResult in this style