diff options
author | giacco <filippo.giacche@gmail.com> | 2017-02-10 00:13:29 +0000 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-02-16 17:28:48 +0000 |
commit | c995531d8a7c97f684f2e65707c7b3f87a0ba372 (patch) | |
tree | 0d6fa703ba6b8053b2bf6ac78ef77a7b628ecb7e /sc/inc/scmatrix.hxx | |
parent | e16644fa1c042b56a1301f0476d7ddb71c8765ea (diff) |
tdf#89387 improve performance for some matrix operations
add method in scmatrix to get Gcd and lcm
modified function scinterpreter::ScGcd() and scinterpreter::ScLcm()
now should be ok
Change-Id: I1e41fa5707bc4b637a986f2fc0a2358ac0121af1
Reviewed-on: https://gerrit.libreoffice.org/34110
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/inc/scmatrix.hxx')
-rw-r--r-- | sc/inc/scmatrix.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/inc/scmatrix.hxx b/sc/inc/scmatrix.hxx index 7fdcb1d782d9..632205a6ebfb 100644 --- a/sc/inc/scmatrix.hxx +++ b/sc/inc/scmatrix.hxx @@ -387,6 +387,8 @@ public: virtual double GetMaxValue( bool bTextAsZero ) const = 0; virtual double GetMinValue( bool bTextAsZero ) const = 0; + virtual double GetGcd() const = 0; + virtual double GetLcm() const = 0; virtual ScMatrixRef CompareMatrix( sc::Compare& rComp, size_t nMatPos, sc::CompareOptions* pOptions ) const = 0; @@ -601,6 +603,8 @@ public: virtual double GetMaxValue( bool bTextAsZero ) const override; virtual double GetMinValue( bool bTextAsZero ) const override; + virtual double GetGcd() const override; + virtual double GetLcm() const override; virtual ScMatrixRef CompareMatrix( sc::Compare& rComp, size_t nMatPos, sc::CompareOptions* pOptions ) const override; @@ -818,6 +822,8 @@ public: virtual double GetMaxValue(bool bTextAsZero) const override; virtual double GetMinValue(bool bTextAsZero) const override; + virtual double GetGcd() const override; + virtual double GetLcm() const override; virtual ScMatrixRef CompareMatrix(sc::Compare& rComp, size_t nMatPos, sc::CompareOptions* pOptions) const override; |