(.js)
laraImport("antarex.precision.CustomPrecisionFunc");
(.lara)
import antarex.precision.CustomPrecisionFunc;
Global Functions
dclConstantDoubleFloat
dclConstantDoubleFloat($expr)
genCodePrecisionDefsAsked
genCodePrecisionDefsAsked(vtype)
Generate the file INRIA_PRECISION_DEFS_[vtype].h, vtype restricted to float or double,
with vtype-typed definitions for the created symbols.
Parameters
vtype: any
genCodePrecisionDefsOriginalVersion
genCodePrecisionDefsOriginalVersion()
Generate the file INRIA_PRECISION_DEFS_[vtype].h with the original definitions for the created symbols.
vtype is the current type of the customization.
genCodePrecisionDefsTemplate
genCodePrecisionDefsTemplate()
Generate the file INRIA_PRECISION_DEFS_template.h with undefined definitions for the created symbols.
genConstants
genConstants($vf, bval)
Parameters
$vf: any
bval: any
getDataType
getDataType()
Returns
any - the symbol assigned to the current parameterized type.
getExtractedConstantsSymbol
getExtractedConstantsSymbol(val)
getNewNameFunc
getNewNameFunc(name)
Parameters
name: any
Returns
any - the new symbol for a math function. For example getNewNameFunc('sin') returns sin_INRIA_DATATYPE_1 where _INRIA_DATATYPE_1 is the current symbol of the 'extracted' type.
getNewSymbolForExtractedConstant
getNewSymbolForExtractedConstant()
Returns
any - a new symbol for the constant parametrization.
getNextIOFormat
getNextIOFormat()
getOtherFormat
getOtherFormat($code, $vtype)
Parameters
$code: any
$vtype: any
Returns
any - the format for the $vtype type obtained from $code format, or 'NOT_YET_IMPLEMENTED (...)' for unknown translation. Example: for $code="%d%7s%lf%lf%lf%7s" and $vtype='float', it returns "%d%7s%f%f%f%7s".
getOtherMathFunc
getOtherMathFunc($vmfunc, $vtype)
Parameters
$vmfunc: any
$vtype: any
Returns
any - the name of $vmfunc for the $vtype type. It is assumed that $vmfunc is the name of math functions. Example getOtherMathFunc( 'sin', 'float') returns 'sinf'.
getPrecisionPrefix
getPrecisionPrefix()
Returns
any - the prefix used for the added files for the parametrization.
initNewDatatype
initNewDatatype()
Assigned a new symbol for the current type parametrization.
isIn
isIn(vstr, visin)
Parameters
vstr: any
visin: any
Returns
any - true if the string vstr contains the visin string, false otherwise.
mkJointPointType
mkJointPointType(atype)