LibreOffice Module sc (master)  1
matrixoperators.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #include <matrixoperators.hxx>
11 
12 
13 namespace sc::op {
14 
15 void Sum::operator()(double& rAccum, double fVal) const
16 {
17  rAccum += fVal;
18 }
19 
20 const double Sum::InitVal = 0.0;
21 
22 void SumSquare::operator()(double& rAccum, double fVal) const
23 {
24  rAccum += fVal * fVal;
25 }
26 
27 const double SumSquare::InitVal = 0.0;
28 
29 void Product::operator()(double& rAccum, double fVal) const
30 {
31  rAccum *= fVal;
32 }
33 
34 const double Product::InitVal = 1.0;
35 
36 }
37 
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
static const double InitVal
static const double InitVal
void operator()(double &rAccum, double fVal) const
void operator()(double &rAccum, double fVal) const
static const double InitVal
void operator()(double &rAccum, double fVal) const