Feature #1990
Add addition of a constant to GMatrix
Status: | Closed | Start date: | 04/06/2017 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assigned To: | Eschbach Stefan | % Done: | 100% | |
Category: | - | |||
Target version: | 1.3.0 | |||
Duration: |
Description
The constant is added to every element of the matrix
Recurrence
No recurrence.
History
#1 Updated by Eschbach Stefan over 7 years ago
- Status changed from New to Pull request
- % Done changed from 0 to 100
I have added the following operators to the GMatrix class:
virtual GMatrix operator+(const double& scalar) const;
virtual GMatrix operator-(const double& scalar) const;
virtual GMatrix& operator+=(const double& scalar);
virtual GMatrix& operator-=(const double& scalar);
Tests for all operators are implemented, the GMatrix.i file is also updated, the test suite of gammalib did run successfully after the changes.
Ready for code review, changes are implemented in seschbach/gammalib branch 1990-gmatrix-add-constant.
#2 Updated by Knödlseder Jürgen over 7 years ago
- Status changed from Pull request to Closed
- Target version set to 1.3.0
I also added these operators to the GMatrixSymmetric
and GMatrixSparse
classes and merged everything into devel
.