LibreOffice Module sc (master) 1
Classes | Namespaces | Typedefs | Functions | Variables
scmatrix.cxx File Reference
#include <scmatrix.hxx>
#include <global.hxx>
#include <address.hxx>
#include <formula/errorcodes.hxx>
#include <interpre.hxx>
#include <mtvelements.hxx>
#include <compare.hxx>
#include <matrixoperators.hxx>
#include <math.hxx>
#include <svl/numformat.hxx>
#include <svl/zforlist.hxx>
#include <svl/sharedstring.hxx>
#include <rtl/math.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <memory>
#include <mutex>
#include <utility>
#include <vector>
#include <limits>
#include <mdds/multi_type_matrix.hpp>
#include <mdds/multi_type_vector/types.hpp>
Include dependency graph for scmatrix.cxx:

Go to the source code of this file.

Classes

class  ScMatrixImpl
 

Namespaces

namespace  matop
 

Typedefs

typedef mdds::multi_type_matrix< matrix_traits > MatrixImplType
 
typedef mdds::multi_type_matrix< matrix_flag_traits > MatrixFlagImplType
 
typedef uint8_t TMatFlag
 

Functions

static size_t GetElementsMax (size_t nMemory)
 The maximum number of elements a matrix or the pool may have at runtime. More...
 

Variables

const TMatFlag SC_MATFLAG_EMPTYRESULT = 1
 
const TMatFlag SC_MATFLAG_EMPTYPATH = 2
 
static std::once_flag bElementsMaxFetched
 
static std::atomic< size_t > nElementsMax
 

Typedef Documentation

◆ MatrixFlagImplType

typedef mdds::multi_type_matrix<matrix_flag_traits> MatrixFlagImplType

Definition at line 76 of file scmatrix.cxx.

◆ MatrixImplType

typedef mdds::multi_type_matrix<matrix_traits> MatrixImplType

Definition at line 75 of file scmatrix.cxx.

◆ TMatFlag

typedef uint8_t TMatFlag

Definition at line 227 of file scmatrix.cxx.

Function Documentation

◆ GetElementsMax()

static size_t GetElementsMax ( size_t  nMemory)
static

The maximum number of elements a matrix or the pool may have at runtime.

Parameters
nMemoryIf 0, the arbitrary limit of one matrix is returned. If >0, the given memory pool divided by the average size of a matrix element is returned, which is used to initialize nElementsMax.

Definition at line 371 of file scmatrix.cxx.

References MAXROWCOUNT.

Referenced by ScMatrix::IsSizeAllocatable().

Variable Documentation

◆ bElementsMaxFetched

std::once_flag bElementsMaxFetched
static

Definition at line 360 of file scmatrix.cxx.

Referenced by ScMatrix::IsSizeAllocatable().

◆ maOp

TOp maOp
private

Definition at line 3480 of file scmatrix.cxx.

◆ mfVal

double mfVal
private

Definition at line 3482 of file scmatrix.cxx.

◆ mpErrorInterpreter

ScInterpreter* mpErrorInterpreter
private

Definition at line 3481 of file scmatrix.cxx.

◆ nElementsMax

std::atomic<size_t> nElementsMax
static

◆ SC_MATFLAG_EMPTYPATH

const TMatFlag SC_MATFLAG_EMPTYPATH = 2

◆ SC_MATFLAG_EMPTYRESULT

const TMatFlag SC_MATFLAG_EMPTYRESULT = 1