-
…ients argument (#1847) The eval_gradients() methods duplicate much of the code of the eval() methods. To increase the maintainability of the code, the eval_gradients() methods have been removed, and the computation of partial derivatives is now done by the eval() methods if the optional gradients argument is set to true.
-
The coding and design conventions (CDC) document was also updated.
-
The GFunction::eval interface has been revised and all affected GammaLib classes have been adapted.
-
A contains() method has been added to GCTARoi that checks whether an event in contained within the ROI. This method will become pure virtual in the GRoi class later so that the check can be done independently of the ROI specifications. The contains() method is now used in GCTAModelBackground for checking whether an event lies within the ROI. The GCTAInstDir class now only has the dir() method to access and modify the GSkyDir member. All methods that were basically copied from GSkyDir have now been removed to avoid code duplication. Using the dir() method, all methods are now directly accessible from the GSkyDir object.
-
Add GChatter argument to print() method. The print() method now takes an argument of type GChatter to control the chattiness of the output in a homogenous manner. Pass NORMAL chatter level in __str__ method. Add chatter argument to print() methods. Use GLog::chatter() method to control the chattiness of the log stream operator. Add chatter() methods and provide member access through const references. Add chatter() methods, provide member access through const references, and declare one liners as inline methods. The chatter() methods control the new m_chatter attribute that is used to control the chattiness of the object's print() methods. name() and version() methods return const references. logFileOpen() method now sets the chattiness from the applications's chatter parameter, and name() and version() methods now return a const reference.
-
The GModelPar interface has been revisited and the code has been adapted to satisfy the new interface.