Classes | Enumerations | Variables
ibis::math Namespace Reference

A namespace for arithmetic expressions. More...

Classes

class  barrel
 A barrel to hold a list of variables. More...
class  bediener
 An operator. Bediener is German for operator. More...
class  literal
 A string literal. More...
class  number
 A number. More...
class  stdFunction1
 One-argument standard functions. More...
class  stdFunction2
 Two-argument standard functions. More...
class  term
 The abstract base class for arithmetic terms. More...
class  variable
 A variable. More...

Enumerations

enum  OPERADOR {
  UNKNOWN = 0, BITOR, BITAND, PLUS,
  MINUS, MULTIPLY, DIVIDE, REMAINDER,
  NEGATE, POWER
}
 All supported arithmetic operators. More...
enum  STDFUN1 {
  ACOS = 0, ASIN, ATAN, CEIL,
  COS, COSH, EXP, FABS,
  FLOOR, FREXP, LOG10, LOG,
  MODF, ROUND, SIN, SINH,
  SQRT, TAN, TANH, IS_ZERO,
  IS_NONZERO
}
 Standard 1-argument and 2-argument functions.
enum  STDFUN2 {
  ATAN2 = 0, FMOD, LDEXP, ROUND2,
  POW, IS_EQL, IS_GTE, IS_LTE
}
enum  TERM_TYPE {
  UNDEF_TERM, VARIABLE, NUMBER, STRING,
  OPERATOR, STDFUNCTION1, STDFUNCTION2, CUSTOMFUNCTION1,
  CUSTOMFUNCTION2
}
 Types of terms allowed in the mathematical expressions.

Variables

const char * operator_name []
 String form of the operators.
bool preserveInputExpressions = false
 Whether to keep arithmetic expression as user inputed them.
const char * stdfun1_name []
 String form of the one-argument standard functions.
const char * stdfun2_name []
 String form of the two-argument standard functions.

Detailed Description

A namespace for arithmetic expressions.


Enumeration Type Documentation

All supported arithmetic operators.

The word operador is Spainish for operator.


Variable Documentation

Initial value:
    {"?", "|", "&", "+", "-", "*", "/", "%", "-", "**"}

String form of the operators.

Referenced by ibis::math::bediener::print().

Whether to keep arithmetic expression as user inputed them.

  • If it is true, FastBit will not consolidate constant expressions nor perform other simple optimizations.
  • If it is false, the software will attempt to minimize the number of operations needed to apply them on data records.
Note:
Keep the arithmetic expressions unaltered will preserve its round-off properties and produce exactly the same numeric results as one might expect. However, this is normally not the most important consideration as the differences are typically quite small. Therefore, the default value of this variable is false.

Referenced by ibis::qExpr::simplify(), ibis::selectClause::verify(), and ibis::selectClause::verifySome().

Initial value:
    {"acos", "asin", "atan", "ceil", "cos", "cosh", "exp", "fabs", "floor",
     "frexp", "log10", "log", "modf", "round", "sin", "sinh", "sqrt", "tan",
     "tanh", "is_zero", "is_nonzero"}

String form of the one-argument standard functions.

Referenced by ibis::math::stdFunction1::print().

Initial value:
 
    {"atan2", "fmod", "ldexp", "round", "pow",
     "is_eql", "is_gte", "is_lte"}

String form of the two-argument standard functions.

Referenced by ibis::math::stdFunction2::print().

Make It A Bit Faster
Contact us
Disclaimers
FastBit source code
FastBit mailing list archive