I'm sorry. Coming up to work, I've realized that my previous suggestion was silly. > > Instead of having a method > RealVector getSolution() > how about specifying > RealVector getSolution(boolean deep) > if deep is true, it returns a deep copy, if not it MIGHT (but the > contract of the method does not make it compulsory) return a shallow > copy. The Javadoc should clearly state that if deep is true, then the > user should not modify the returned vector. >
I'd like to withdraw it and not waste your time with that. Sorry again. I can submit some code regarding unmodifiableRealVector(RealVector v) very soon, I hope. Best regards for now, Sebastien --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org