LibreOffice Module sc (master)  1
Variables
opinlinefun_math.hxx File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

std::string Math_Intg_Str
 
std::string bikDecl = "double bik(double n,double k);\n"
 
std::string bik
 
std::string local_cothDecl = "double local_coth(double n);\n"
 
std::string local_coth
 
std::string local_coshDecl = "double local_cosh(double n);\n"
 
std::string local_cosh
 
std::string atan2Decl = "double arctan2(double y, double x);\n"
 
std::string atan2Content
 

Variable Documentation

std::string atan2Content
Initial value:
=
"double arctan2(double y, double x)\n"
"{\n"
" if(y==0.0)\n"
" return 0.0;\n"
" double a,num,den,tmpPi;\n"
" int flag;\n"
" tmpPi = 0;\n"
" if (fabs(x) >= fabs(y))\n"
" {\n"
" num = y;\n"
" den = x;\n"
" flag = 1;\n"
" if (x < 0.0)\n"
" tmpPi = M_PI;\n"
" }\n"
" if(fabs(x) < fabs(y))\n"
" {\n"
" num = x;\n"
" den = y;\n"
" flag = -1;\n"
" tmpPi = M_PI_2;\n"
" }\n"
" a = atan(num/den);\n"
" a = flag==1?a:-a;\n"
" a = a + (y >= 0.0 ? tmpPi : -tmpPi);\n"
" return a;\n"
"}\n"

Definition at line 60 of file opinlinefun_math.hxx.

Referenced by sc::opencl::OpArcCos::BinInlineFun(), sc::opencl::OpArcSin::BinInlineFun(), and sc::opencl::OpArcTan2::BinInlineFun().

std::string atan2Decl = "double arctan2(double y, double x);\n"
std::string bik
Initial value:
=
"double bik(double n,double k)\n"
"{\n"
" double nVal1 = n;\n"
" double nVal2 = k;\n"
" n = n - 1;\n"
" k = k - 1;\n"
" while (k > 0)\n"
" {\n"
" nVal1 = nVal1 * n;\n"
" nVal2 = nVal2 * k;\n"
" k = k - 1;\n"
" n = n - 1;\n"
" }\n"
" return (nVal1 / nVal2);\n"
"}\n"

Definition at line 25 of file opinlinefun_math.hxx.

Referenced by sc::opencl::OpCombinA::BinInlineFun().

std::string bikDecl = "double bik(double n,double k);\n"

Definition at line 24 of file opinlinefun_math.hxx.

Referenced by sc::opencl::OpCombinA::BinInlineFun().

std::string local_cosh
Initial value:
=
"double local_cosh(double n)\n"
"{\n"
" double nVal = (exp(n) + exp(-n)) / 2;\n"
" return nVal;\n"
"}\n"

Definition at line 53 of file opinlinefun_math.hxx.

Referenced by sc::opencl::OpCosh::BinInlineFun().

std::string local_coshDecl = "double local_cosh(double n);\n"

Definition at line 52 of file opinlinefun_math.hxx.

Referenced by sc::opencl::OpCosh::BinInlineFun().

std::string local_coth
Initial value:
=
"double local_coth(double n)\n"
"{\n"
" double a = exp(n);\n"
" double b = exp(-n);\n"
" double nVal = (a + b) / (a - b);\n"
" return nVal;\n"
"}\n"

Definition at line 43 of file opinlinefun_math.hxx.

Referenced by sc::opencl::OpCoth::BinInlineFun().

std::string local_cothDecl = "double local_coth(double n);\n"

Definition at line 42 of file opinlinefun_math.hxx.

Referenced by sc::opencl::OpCoth::BinInlineFun().

std::string Math_Intg_Str
Initial value:
=
"\ndouble Intg(double n)\n\
{\n\
if(trunc(n)==n )\n\
return n;\n\
else if(n<0)\n\
return trunc(n)-1;\n\
else\n\
return trunc(n)+1;\n\
}\n"

Definition at line 13 of file opinlinefun_math.hxx.

Referenced by sc::opencl::OpOdd::GenSlidingWindowFunction().