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::OperatorModuloFun 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::OperatorModuloFun::GetFunctions ( )
static
229335 {
229336 ScalarFunctionSet modulo("%");
229337 for (auto &type : LogicalType::Numeric()) {
229338 if (type.id() == LogicalTypeId::FLOAT || type.id() == LogicalTypeId::DOUBLE) {
229339 modulo.AddFunction(ScalarFunction({type, type}, type, nullptr, BindBinaryFloatingPoint<ModuloOperator>));
229340 } else if (type.id() == LogicalTypeId::DECIMAL) {
229341 modulo.AddFunction(ScalarFunction({type, type}, type, nullptr, BindDecimalModulo<ModuloOperator>));
229342 } else {
229343 modulo.AddFunction(
229344 ScalarFunction({type, type}, type, GetBinaryFunctionIgnoreZero<ModuloOperator>(type.InternalType())));
229345 }
229346 }
229347 for (auto &func : modulo.functions) {
229348 func.SetFallible();
229349 }
229350
229351 return modulo;
229352}
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: