Skip to content

Commit

Permalink
fix: Move View enum definition before its usage as member variable
Browse files Browse the repository at this point in the history
Co-Authored-By: Serg Kryvonos <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and ohhmm committed Feb 15, 2025
1 parent eb499f4 commit d1fdd80
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions omnn/math/Valuable.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,21 +151,6 @@ class Valuable

Valuable& Become(Valuable&&);

size_t hash = 0;
size_t sz = sizeof(Valuable);
static const a_int& a_int_z;
static const max_exp_t& max_exp_z;
View view = View::None;
max_exp_t maxVaExp = 0;//max_exp_z; // ordering weight: vars max exponentiation in this valuable

bool optimized = false;
void MarkAsOptimized();

public:
const encapsulated_instance& getInst() const noexcept { return exp; }
void MarkNotOptimized();


/// <summary>
/// Depends on optimizing goals, the view may set different.
// time to evaluate
Expand All @@ -187,6 +172,20 @@ class Valuable
SupersetOfRoots = 64 | Solving
};

size_t hash = 0;
size_t sz = sizeof(Valuable);
static const a_int& a_int_z;
static const max_exp_t& max_exp_z;
View view{View::None};
max_exp_t maxVaExp = 0;//max_exp_z; // ordering weight: vars max exponentiation in this valuable

bool optimized = false;
void MarkAsOptimized();

public:
const encapsulated_instance& getInst() const noexcept { return exp; }
void MarkNotOptimized();

friend std::ostream& operator<<(std::ostream& os, View v) {
return os << static_cast<uint8_t>(v);
}
Expand Down

0 comments on commit d1fdd80

Please sign in to comment.