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

Static Public Member Functions

template<class T>
static bool Operation (const LogicalType &type, BaseStatistics &istats, Value &new_min, Value &new_max)

Member Function Documentation

◆ Operation()

template<class T>
bool duckdb::NegatePropagateStatistics::Operation ( const LogicalType & type,
BaseStatistics & istats,
Value & new_min,
Value & new_max )
inlinestatic
228771 {
228772 auto max_value = NumericStats::GetMax<T>(istats);
228773 auto min_value = NumericStats::GetMin<T>(istats);
228774 if (!NegateOperator::CanNegate<T>(min_value) || !NegateOperator::CanNegate<T>(max_value)) {
228775 return true;
228776 }
228777 // new min is -max
228778 new_min = Value::Numeric(type, NegateOperator::Operation<T, T>(max_value));
228779 // new max is -min
228780 new_max = Value::Numeric(type, NegateOperator::Operation<T, T>(min_value));
228781 return false;
228782 }
static DUCKDB_API Value Numeric(const LogicalType &type, int64_t value)
Create a Numeric value of the specified type with the specified value.
Definition duckdb.cpp:133053

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