summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2010-11-27 09:19:00 +0100
committerDavid Tardon <dtardon@redhat.com>2010-11-27 09:20:20 +0100
commitf64744d19745dc88be957642a5f74bacf72a9f77 (patch)
tree4551f3a8ae6a60a4c54ac25fb2ea14a84c71c4ea
parent9733ddb05adb174065cf16c3872b9115337f70c6 (diff)
fix debug build with dbglevel=2
-rw-r--r--sc/source/core/tool/interpr5.cxx39
1 files changed, 22 insertions, 17 deletions
diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx
index ee531c4cf18e..3cd7e1a6145f 100644
--- a/sc/source/core/tool/interpr5.cxx
+++ b/sc/source/core/tool/interpr5.cxx
@@ -100,6 +100,28 @@ const double fInvEpsilon = 1.0E-7;
}
};
+namespace
+{
+
+// Multiply n x m Mat A with m x l Mat B to n x l Mat R
+void lcl_MFastMult(ScMatrixRef pA, ScMatrixRef pB, ScMatrixRef pR,
+ SCSIZE n, SCSIZE m, SCSIZE l)
+{
+ double sum;
+ for (SCSIZE row = 0; row < n; row++)
+ {
+ for (SCSIZE col = 0; col < l; col++)
+ { // result element(col, row) =sum[ (row of A) * (column of B)]
+ sum = 0.0;
+ for (SCSIZE k = 0; k < m; k++)
+ sum += pA->GetDouble(k,row) * pB->GetDouble(col,k);
+ pR->PutDouble(sum, col, row);
+ }
+ }
+}
+
+}
+
double ScInterpreter::ScGetGCD(double fx, double fy)
{
RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "sc", "er", "ScInterpreter::div" );
@@ -1852,23 +1874,6 @@ namespace {
// Remember, ScMatrix matrices are zero based, index access (column,row).
// -----------------------------------------------------------------------------
-// Multiply n x m Mat A with m x l Mat B to n x l Mat R
-void lcl_MFastMult(ScMatrixRef pA, ScMatrixRef pB, ScMatrixRef pR,
- SCSIZE n, SCSIZE m, SCSIZE l)
-{
- double sum;
- for (SCSIZE row = 0; row < n; row++)
- {
- for (SCSIZE col = 0; col < l; col++)
- { // result element(col, row) =sum[ (row of A) * (column of B)]
- sum = 0.0;
- for (SCSIZE k = 0; k < m; k++)
- sum += pA->GetDouble(k,row) * pB->GetDouble(col,k);
- pR->PutDouble(sum, col, row);
- }
- }
-}
-
// <A;B> over all elements; uses the matrices as vectors of length M
double lcl_GetSumProduct(ScMatrixRef pMatA, ScMatrixRef pMatB, SCSIZE nM)
{