diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-19 13:55:53 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-19 13:57:40 -0400 |
commit | 75e6bcba872bc1fd7b4316ff219fb6545e9f542d (patch) | |
tree | 8c386142f15d10e4f7b7898674c0d9bcf58f62b4 /sc/inc/scmatrix.hxx | |
parent | 8e8b43a03e77dd251876c1de0ac06eeeb09192cd (diff) |
Construct and initialize result matrix in one step.
It's faster this way, than first constructing it then populating it
in two separate steps.
Change-Id: I61d30ed33a63dcf4c89b18d80ae4c3217cc43015
Diffstat (limited to 'sc/inc/scmatrix.hxx')
-rw-r--r-- | sc/inc/scmatrix.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/inc/scmatrix.hxx b/sc/inc/scmatrix.hxx index b2a5d8d58aa7..f2508a658a08 100644 --- a/sc/inc/scmatrix.hxx +++ b/sc/inc/scmatrix.hxx @@ -202,6 +202,8 @@ public: ScMatrix(SCSIZE nC, SCSIZE nR); ScMatrix(SCSIZE nC, SCSIZE nR, double fInitVal); + ScMatrix( size_t nC, size_t nR, const std::vector<bool>& rInitVals ); + /** Clone the matrix. */ ScMatrix* Clone() const; @@ -351,8 +353,8 @@ public: double GetMaxValue( bool bTextAsZero ) const; double GetMinValue( bool bTextAsZero ) const; - void CompareMatrix( - ScMatrix& rResMat, sc::Compare& rComp, size_t nMatPos, sc::CompareOptions* pOptions = NULL ) const; + ScMatrixRef CompareMatrix( + sc::Compare& rComp, size_t nMatPos, sc::CompareOptions* pOptions = NULL ) const; /** * Convert the content of matrix into a linear array of numeric values. |