LibreOffice Module sc (master) 1
interpr5.cxx File Reference
#include <rtl/math.hxx>
#include <string.h>
#include <math.h>
#include <unotools/bootstrap.hxx>
#include <svl/zforlist.hxx>
#include <interpre.hxx>
#include <global.hxx>
#include <formulacell.hxx>
#include <document.hxx>
#include <dociter.hxx>
#include <scmatrix.hxx>
#include <globstr.hrc>
#include <scresid.hxx>
#include <cellkeytranslator.hxx>
#include <formulagroup.hxx>
#include <vcl/svapp.hxx>
#include <vector>
Include dependency graph for interpr5.cxx:

Go to the source code of this file.


static int lcl_LUP_decompose (ScMatrix *mA, const SCSIZE n, ::std::vector< SCSIZE > &P)
static void lcl_LUP_solve (const ScMatrix *mLU, const SCSIZE n, const ::std::vector< SCSIZE > &P, const ::std::vector< double > &B, ::std::vector< double > &X)
static SCSIZE lcl_GetMinExtent (SCSIZE n1, SCSIZE n2)
 Minimum extent of one result matrix dimension. More...
template<class Function >
static ScMatrixRef lcl_MatrixCalculation (const ScMatrix &rMat1, const ScMatrix &rMat2, ScInterpreter *pInterpreter)
static void lcl_GetDiffDateTimeFmtType (SvNumFormatType &nFuncFmt, SvNumFormatType nFmt1, SvNumFormatType nFmt2)

Function Documentation

◆ lcl_GetDiffDateTimeFmtType()

static void lcl_GetDiffDateTimeFmtType ( SvNumFormatType nFuncFmt,
SvNumFormatType  nFmt1,
SvNumFormatType  nFmt2 

Definition at line 1247 of file interpr5.cxx.

Referenced by ScInterpreter::CalculateAddSub().

◆ lcl_GetMinExtent()

static SCSIZE lcl_GetMinExtent ( SCSIZE  n1,

Minimum extent of one result matrix dimension.

For a row or column vector to be replicated the larger matrix dimension is returned, else the smaller dimension.

Definition at line 1155 of file interpr5.cxx.

References n1, and n2.

Referenced by lcl_MatrixCalculation(), and ScInterpreter::MatConcat().

◆ lcl_LUP_decompose()

static int lcl_LUP_decompose ( ScMatrix mA,
const SCSIZE  n,
::std::vector< SCSIZE > &  P 

Definition at line 779 of file interpr5.cxx.

References ScMatrix::GetDouble(), i, n, and ScMatrix::PutDouble().

Referenced by ScInterpreter::ScMatDet(), and ScInterpreter::ScMatInv().

◆ lcl_LUP_solve()

static void lcl_LUP_solve ( const ScMatrix mLU,
const SCSIZE  n,
const ::std::vector< SCSIZE > &  P,
const ::std::vector< double > &  B,
::std::vector< double > &  X 

Definition at line 880 of file interpr5.cxx.

References B, KahanSum::get(), ScMatrix::GetDouble(), i, n, SCSIZE_MAX, and X.

Referenced by ScInterpreter::ScMatInv().

◆ lcl_MatrixCalculation()

template<class Function >
static ScMatrixRef lcl_MatrixCalculation ( const ScMatrix rMat1,
const ScMatrix rMat2,
ScInterpreter pInterpreter