LibreOffice Module sc (master) 1
Public Member Functions | List of all members
sc::opencl::OpAverage Class Reference

#include <op_statistical.hxx>

Inheritance diagram for sc::opencl::OpAverage:
[legend]
Collaboration diagram for sc::opencl::OpAverage:
[legend]

Public Member Functions

 OpAverage (int nResultSize)
 
virtual std::string GetBottom () override
 
virtual std::string Gen2 (const std::string &lhs, const std::string &rhs) const override
 
virtual void BinInlineFun (std::set< std::string > &decls, std::set< std::string > &funs) override
 
virtual std::string BinFuncName () const override
 
virtual bool isAverage () const override
 
virtual bool canHandleMultiVector () const override
 
- Public Member Functions inherited from sc::opencl::Reduction
 Reduction (int nResultSize)
 
virtual bool HandleNaNArgument (outputstream &, unsigned, SubArguments &) const
 
virtual void GenSlidingWindowFunction (outputstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override
 
virtual bool isAverage () const
 
virtual bool isMinOrMax () const
 
virtual bool takeString () const override
 
virtual bool takeNumeric () const override
 
virtual void GenSlidingWindowFunction (outputstream &, const std::string &, SubArguments &)=0
 
- Public Member Functions inherited from sc::opencl::OpBase
virtual std::string GetBottom ()
 
virtual std::string Gen2 (const std::string &, const std::string &) const
 
virtual std::string BinFuncName () const
 
virtual void BinInlineFun (std::set< std::string > &, std::set< std::string > &)
 
virtual bool takeString () const =0
 
virtual bool takeNumeric () const =0
 
virtual bool canHandleMultiVector () const
 
virtual bool ZeroReturnZero ()
 
virtual bool forceStringsToZero () const
 
virtual ~OpBase ()
 

Additional Inherited Members

- Public Types inherited from sc::opencl::Reduction
typedef DynamicKernelSlidingArgument< VectorRefNumericRange
 
typedef DynamicKernelSlidingArgument< VectorRefStringsToZeroNumericRangeStringsToZero
 
typedef DynamicKernelSlidingArgument< DynamicKernelStringArgumentStringRange
 
typedef ParallelReductionVectorRef< VectorRefParallelNumericRange
 
- Public Types inherited from sc::opencl::SlidingFunctionBase
typedef std::vector< DynamicKernelArgumentRefSubArguments
 
- Static Public Member Functions inherited from sc::opencl::OpBase
static std::string Gen (std::vector< std::string > &)
 
- Protected Types inherited from sc::opencl::SlidingFunctionBase
enum  EmptyArgType {
  EmptyIsZero ,
  EmptyIsNan ,
  SkipEmpty
}
 
enum  GenerateArgTypeType {
  DoNotGenerateArgType ,
  GenerateArgType
}
 
- Protected Member Functions inherited from sc::opencl::SlidingFunctionBase
void GenerateFunctionDeclaration (const std::string &sSymName, SubArguments &vSubArguments, outputstream &ss)
 
void GenerateArg (const char *name, int arg, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty=EmptyIsZero, GenerateArgTypeType generateType=DoNotGenerateArgType)
 
void GenerateArg (int arg, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty=EmptyIsZero, GenerateArgTypeType generateType=DoNotGenerateArgType)
 
void GenerateArgWithDefault (const char *name, int arg, double def, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty=EmptyIsZero)
 
void GenerateRangeArg (int arg1, int arg2, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty, const char *code, const char *firstElementDiff=nullptr)
 
- Static Protected Member Functions inherited from sc::opencl::SlidingFunctionBase
static void GenerateRangeArgs (int firstArg, int lastArg, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty, const char *code)
 
static void GenerateRangeArgs (SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty, const char *code)
 
static void GenerateRangeArg (int arg, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty, const char *code)
 
static void GenerateRangeArgPair (int arg1, int arg2, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty, const char *code, const char *firstElementDiff=nullptr)
 
static void GenerateRangeArgElement (const char *name, int arg, const char *element, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty)
 
static void GenerateDoubleVectorLoopHeader (outputstream &ss, const formula::DoubleVectorRefToken *pDVR, const char *firstElementDiff)
 

Detailed Description

Definition at line 543 of file op_statistical.hxx.

Constructor & Destructor Documentation

◆ OpAverage()

sc::opencl::OpAverage::OpAverage ( int  nResultSize)
inlineexplicit

Definition at line 546 of file op_statistical.hxx.

Member Function Documentation

◆ BinFuncName()

virtual std::string sc::opencl::OpAverage::BinFuncName ( ) const
inlineoverridevirtual

Reimplemented from sc::opencl::OpBase.

Reimplemented in sc::opencl::OpAverageA.

Definition at line 556 of file op_statistical.hxx.

◆ BinInlineFun()

void sc::opencl::OpAverage::BinInlineFun ( std::set< std::string > &  decls,
std::set< std::string > &  funs 
)
overridevirtual

Reimplemented from sc::opencl::OpBase.

Definition at line 2153 of file op_statistical.cxx.

References fsum_count, and fsum_countDecl.

◆ canHandleMultiVector()

virtual bool sc::opencl::OpAverage::canHandleMultiVector ( ) const
inlineoverridevirtual

Reimplemented from sc::opencl::OpBase.

Definition at line 558 of file op_statistical.hxx.

◆ Gen2()

virtual std::string sc::opencl::OpAverage::Gen2 ( const std::string &  lhs,
const std::string &  rhs 
) const
inlineoverridevirtual

Reimplemented from sc::opencl::OpBase.

Definition at line 549 of file op_statistical.hxx.

◆ GetBottom()

virtual std::string sc::opencl::OpAverage::GetBottom ( )
inlineoverridevirtual

Reimplemented from sc::opencl::OpBase.

Definition at line 548 of file op_statistical.hxx.

◆ isAverage()

virtual bool sc::opencl::OpAverage::isAverage ( ) const
inlineoverridevirtual

Reimplemented from sc::opencl::Reduction.

Definition at line 557 of file op_statistical.hxx.


The documentation for this class was generated from the following files: