Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
Halide::Internal::Autoscheduler::OptionalRational Struct Reference

#include <FunctionDAG.h>

Public Member Functions

 OptionalRational ()=default
 
 OptionalRational (bool e, int64_t n, int64_t d)
 
void operator+= (const OptionalRational &other)
 
OptionalRational operator* (const OptionalRational &other) const
 
bool operator< (int x) const
 
bool operator<= (int x) const
 
bool operator> (int x) const
 
bool operator>= (int x) const
 
bool operator== (int x) const
 
bool operator== (const OptionalRational &other) const
 
bool exists () const
 
 OptionalRational ()=default
 
 OptionalRational (int64_t n, int64_t d)
 
void operator+= (const OptionalRational &other)
 
OptionalRational operator* (int64_t factor) const
 
OptionalRational operator* (const OptionalRational &other) const
 
bool operator< (int x) const
 
bool operator<= (int x) const
 
bool operator> (int x) const
 
bool operator>= (int x) const
 
bool operator== (int x) const
 
bool operator== (const OptionalRational &other) const
 

Public Attributes

bool exists = false
 
int64_t numerator = 0
 
int64_t denominator = 0
 
int32_t numerator = 0
 
int32_t denominator = 0
 

Detailed Description

Definition at line 33 of file FunctionDAG.h.

Constructor & Destructor Documentation

◆ OptionalRational() [1/4]

Halide::Internal::Autoscheduler::OptionalRational::OptionalRational ( )
default

◆ OptionalRational() [2/4]

Halide::Internal::Autoscheduler::OptionalRational::OptionalRational ( bool e,
int64_t n,
int64_t d )
inline

Definition at line 40 of file FunctionDAG.h.

◆ OptionalRational() [3/4]

Halide::Internal::Autoscheduler::OptionalRational::OptionalRational ( )
default

◆ OptionalRational() [4/4]

Halide::Internal::Autoscheduler::OptionalRational::OptionalRational ( int64_t n,
int64_t d )
inline

Definition at line 41 of file FunctionDAG.h.

Member Function Documentation

◆ operator+=() [1/2]

void Halide::Internal::Autoscheduler::OptionalRational::operator+= ( const OptionalRational & other)
inline

◆ operator*() [1/3]

OptionalRational Halide::Internal::Autoscheduler::OptionalRational::operator* ( const OptionalRational & other) const
inline

Definition at line 63 of file FunctionDAG.h.

References denominator, exists, and numerator.

◆ operator<() [1/2]

bool Halide::Internal::Autoscheduler::OptionalRational::operator< ( int x) const
inline

Definition at line 80 of file FunctionDAG.h.

References denominator, exists, and numerator.

◆ operator<=() [1/2]

bool Halide::Internal::Autoscheduler::OptionalRational::operator<= ( int x) const
inline

Definition at line 91 of file FunctionDAG.h.

References denominator, exists, and numerator.

◆ operator>() [1/2]

bool Halide::Internal::Autoscheduler::OptionalRational::operator> ( int x) const
inline

Definition at line 102 of file FunctionDAG.h.

References exists.

◆ operator>=() [1/2]

bool Halide::Internal::Autoscheduler::OptionalRational::operator>= ( int x) const
inline

Definition at line 109 of file FunctionDAG.h.

References exists.

◆ operator==() [1/4]

bool Halide::Internal::Autoscheduler::OptionalRational::operator== ( int x) const
inline

Definition at line 116 of file FunctionDAG.h.

References denominator, exists, and numerator.

◆ operator==() [2/4]

bool Halide::Internal::Autoscheduler::OptionalRational::operator== ( const OptionalRational & other) const
inline

Definition at line 120 of file FunctionDAG.h.

References denominator, exists, and numerator.

◆ exists()

bool Halide::Internal::Autoscheduler::OptionalRational::exists ( ) const
inline

Definition at line 36 of file FunctionDAG.h.

References denominator.

◆ operator+=() [2/2]

void Halide::Internal::Autoscheduler::OptionalRational::operator+= ( const OptionalRational & other)
inline

Definition at line 46 of file FunctionDAG.h.

References denominator, Halide::Internal::gcd(), Halide::Internal::lcm(), and numerator.

◆ operator*() [2/3]

OptionalRational Halide::Internal::Autoscheduler::OptionalRational::operator* ( int64_t factor) const
inline

Definition at line 65 of file FunctionDAG.h.

References denominator, and numerator.

◆ operator*() [3/3]

OptionalRational Halide::Internal::Autoscheduler::OptionalRational::operator* ( const OptionalRational & other) const
inline

Definition at line 73 of file FunctionDAG.h.

References denominator, and numerator.

◆ operator<() [2/2]

bool Halide::Internal::Autoscheduler::OptionalRational::operator< ( int x) const
inline

Definition at line 89 of file FunctionDAG.h.

References denominator, and numerator.

◆ operator<=() [2/2]

bool Halide::Internal::Autoscheduler::OptionalRational::operator<= ( int x) const
inline

Definition at line 99 of file FunctionDAG.h.

References denominator, and numerator.

◆ operator>() [2/2]

bool Halide::Internal::Autoscheduler::OptionalRational::operator> ( int x) const
inline

Definition at line 109 of file FunctionDAG.h.

References exists.

◆ operator>=() [2/2]

bool Halide::Internal::Autoscheduler::OptionalRational::operator>= ( int x) const
inline

Definition at line 116 of file FunctionDAG.h.

References exists.

◆ operator==() [3/4]

bool Halide::Internal::Autoscheduler::OptionalRational::operator== ( int x) const
inline

Definition at line 123 of file FunctionDAG.h.

References denominator, exists, and numerator.

◆ operator==() [4/4]

bool Halide::Internal::Autoscheduler::OptionalRational::operator== ( const OptionalRational & other) const
inline

Definition at line 127 of file FunctionDAG.h.

References denominator, exists, and numerator.

Member Data Documentation

◆ exists

bool Halide::Internal::Autoscheduler::OptionalRational::exists = false

◆ numerator [1/2]

int64_t Halide::Internal::Autoscheduler::OptionalRational::numerator = 0

◆ denominator [1/2]

int64_t Halide::Internal::Autoscheduler::OptionalRational::denominator = 0

◆ numerator [2/2]

int32_t Halide::Internal::Autoscheduler::OptionalRational::numerator = 0

Definition at line 34 of file FunctionDAG.h.

◆ denominator [2/2]

int32_t Halide::Internal::Autoscheduler::OptionalRational::denominator = 0

Definition at line 34 of file FunctionDAG.h.


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