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::ModuloOperator Struct Reference

Public Member Functions

template<>
float Operation (float left, float right)
template<>
double Operation (double left, double right)
template<>
hugeint_t Operation (hugeint_t left, hugeint_t right)
template<>
float Operation (float left, float right)
template<>
double Operation (double left, double right)
template<>
hugeint_t Operation (hugeint_t left, hugeint_t right)

Static Public Member Functions

template<class TA, class TB, class TR>
static TR Operation (TA left, TB right)

Member Function Documentation

◆ Operation() [1/4]

template<class TA, class TB, class TR>
TR duckdb::ModuloOperator::Operation ( TA left,
TB right )
inlinestatic
228140 {
228141 D_ASSERT(right != 0);
228142 return left % right;
228143 }

◆ Operation() [2/4]

template<>
float duckdb::ModuloOperator::Operation ( float left,
float right )
229316 {
229317 auto result = std::fmod(left, right);
229318 return result;
229319}

◆ Operation() [3/4]

template<>
double duckdb::ModuloOperator::Operation ( double left,
double right )
229322 {
229323 auto result = std::fmod(left, right);
229324 return result;
229325}

◆ Operation() [4/4]

template<>
hugeint_t duckdb::ModuloOperator::Operation ( hugeint_t left,
hugeint_t right )
229328 {
229329 if (right.lower == 0 && right.upper == 0) {
229330 throw InternalException("Hugeint division by zero!");
229331 }
229332 return left % right;
229333}

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