LibreOffice Module sc (master)  1
Public Member Functions | Public Attributes | List of all members
ScMatrix::IterateResult Struct Reference

When adding all numerical matrix elements for a scalar result such as summation, the interpreter wants to separate the first non-zero value with the rest of the summed values. More...

#include <scmatrix.hxx>

Public Member Functions

 IterateResult (double fFirst, double fRest, size_t nCount)
 

Public Attributes

double mfFirst
 
double mfRest
 
size_t mnCount
 

Detailed Description

When adding all numerical matrix elements for a scalar result such as summation, the interpreter wants to separate the first non-zero value with the rest of the summed values.

This is necessary for better numerical stability, unless we sort all by absolute values before summing (not really an option) or use another algorithm, e.g. Kahan's summation algorithm, https://en.wikipedia.org/wiki/Kahan_summation_algorithm

Definition at line 144 of file scmatrix.hxx.

Constructor & Destructor Documentation

ScMatrix::IterateResult::IterateResult ( double  fFirst,
double  fRest,
size_t  nCount 
)
inline

Definition at line 150 of file scmatrix.hxx.

Member Data Documentation

double ScMatrix::IterateResult::mfFirst

Definition at line 146 of file scmatrix.hxx.

Referenced by IterateMatrix(), and ScInterpreter::ScSumXMY2().

double ScMatrix::IterateResult::mfRest

Definition at line 147 of file scmatrix.hxx.

Referenced by IterateMatrix(), and ScInterpreter::ScSumXMY2().

size_t ScMatrix::IterateResult::mnCount

Definition at line 148 of file scmatrix.hxx.

Referenced by IterateMatrix().


The documentation for this struct was generated from the following file: