Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::OperatorMultiplyFun Struct Reference

Static Public Member Functions

static ScalarFunctionSet GetFunctions ()

Static Public Attributes

static constexpr const char * Name = "*"
static constexpr const char * Parameters = ""
static constexpr const char * Description = ""
static constexpr const char * Example = ""
static constexpr const char * Categories = ""

Member Function Documentation

◆ GetFunctions()

ScalarFunctionSet duckdb::OperatorMultiplyFun::GetFunctions ( )
static
229089 {
229090 ScalarFunctionSet multiply("*");
229091 for (auto &type : LogicalType::Numeric()) {
229092 if (type.id() == LogicalTypeId::DECIMAL) {
229093 ScalarFunction function({type, type}, type, nullptr, BindDecimalMultiply);
229094 function.SetSerializeCallback(SerializeDecimalArithmetic);
229095 function.SetDeserializeCallback(
229096 DeserializeDecimalArithmetic<MultiplyOperator, DecimalMultiplyOverflowCheck>);
229097 multiply.AddFunction(function);
229098 } else if (TypeIsIntegral(type.InternalType())) {
229099 multiply.AddFunction(ScalarFunction(
229100 {type, type}, type, GetScalarIntegerFunction<MultiplyOperatorOverflowCheck>(type.InternalType()),
229101 nullptr, nullptr,
229102 PropagateNumericStats<TryMultiplyOperator, MultiplyPropagateStatistics, MultiplyOperator>));
229103 } else {
229104 multiply.AddFunction(
229105 ScalarFunction({type, type}, type, GetScalarBinaryFunction<MultiplyOperator>(type.InternalType())));
229106 }
229107 }
229108 multiply.AddFunction(
229109 ScalarFunction({LogicalType::INTERVAL, LogicalType::DOUBLE}, LogicalType::INTERVAL,
229110 ScalarFunction::BinaryFunction<interval_t, double, interval_t, MultiplyOperator>));
229111 multiply.AddFunction(
229112 ScalarFunction({LogicalType::DOUBLE, LogicalType::INTERVAL}, LogicalType::INTERVAL,
229113 ScalarFunction::BinaryFunction<double, interval_t, interval_t, MultiplyOperator>));
229114 multiply.AddFunction(
229115 ScalarFunction({LogicalType::BIGINT, LogicalType::INTERVAL}, LogicalType::INTERVAL,
229116 ScalarFunction::BinaryFunction<int64_t, interval_t, interval_t, MultiplyOperator>));
229117 multiply.AddFunction(
229118 ScalarFunction({LogicalType::INTERVAL, LogicalType::BIGINT}, LogicalType::INTERVAL,
229119 ScalarFunction::BinaryFunction<interval_t, int64_t, interval_t, MultiplyOperator>));
229120 for (auto &func : multiply.functions) {
229121 func.SetFallible();
229122 }
229123
229124 return multiply;
229125}
void multiply(InputArray src1, InputArray src2, OutputArray dst, double scale=1, int dtype=-1)
static DUCKDB_API const vector< LogicalType > Numeric()
A list of all NUMERIC types (integral and floating point types).
Definition duckdb.cpp:139263

The documentation for this struct was generated from the following file: