LibreOffice Module sc (master)
1
|
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 |
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 143 of file scmatrix.hxx.
|
inline |
Definition at line 149 of file scmatrix.hxx.
double ScMatrix::IterateResult::mfFirst |
Definition at line 145 of file scmatrix.hxx.
Referenced by IterateMatrix(), and ScInterpreter::ScSumXMY2().
double ScMatrix::IterateResult::mfRest |
Definition at line 146 of file scmatrix.hxx.
Referenced by IterateMatrix(), and ScInterpreter::ScSumXMY2().
size_t ScMatrix::IterateResult::mnCount |
Definition at line 147 of file scmatrix.hxx.
Referenced by IterateMatrix().