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::DivideOperator 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<>
interval_t Operation (interval_t left, int64_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)
template<>
interval_t Operation (interval_t left, double right)

Static Public Member Functions

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

Member Function Documentation

◆ Operation() [1/5]

template<class TA, class TB, class TR>
TR duckdb::DivideOperator::Operation ( TA left,
TB right )
inlinestatic
228132 {
228133 D_ASSERT(right != 0); // this should be checked before!
228134 return left / right;
228135 }

◆ Operation() [2/5]

template<>
float duckdb::DivideOperator::Operation ( float left,
float right )
229131 {
229132 auto result = left / right;
229133 return result;
229134}

◆ Operation() [3/5]

template<>
double duckdb::DivideOperator::Operation ( double left,
double right )
229137 {
229138 auto result = left / right;
229139 return result;
229140}

◆ Operation() [4/5]

template<>
hugeint_t duckdb::DivideOperator::Operation ( hugeint_t left,
hugeint_t right )
229143 {
229144 if (right.lower == 0 && right.upper == 0) {
229145 throw InternalException("Hugeint division by zero!");
229146 }
229147 return left / right;
229148}

◆ Operation() [5/5]

template<>
interval_t duckdb::DivideOperator::Operation ( interval_t left,
double right )
229151 {
229152 interval_t result;
229153 if (!TryMultiplyOperator::Operation<interval_t, double, interval_t>(left, 1.0 / right, result)) {
229154 throw OutOfRangeException("Overflow in INTERVAL division");
229155 }
229156
229157 return result;
229158}

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