Bertini 2 - C++ Core
Software for Numerical Algebraic Geometry
Loading...
Searching...
No Matches
bertini::node::Float Class Reference

Number type for storing floating point numbers within an expression tree. More...

#include <number.hpp>

Inheritance diagram for bertini::node::Float:
[legend]
Collaboration diagram for bertini::node::Float:
[legend]

Public Member Functions

void print (std::ostream &target) const override
 
- Public Member Functions inherited from bertini::node::Number
int Degree (std::shared_ptr< Variable > const &v=nullptr) const override
 Get the degree of this node.
 
int Degree (VariableGroup const &vars) const override
 Get the degree of this node.
 
std::shared_ptr< Node > Differentiate (std::shared_ptr< Variable > const &v=nullptr) const override
 Differentiate a number.
 
void Homogenize (VariableGroup const &vars, std::shared_ptr< Variable > const &homvar) override
 Homogenize this node.
 
bool IsHomogeneous (std::shared_ptr< Variable > const &v=nullptr) const override
 Is this node homogeneous?
 
bool IsHomogeneous (VariableGroup const &vars) const override
 
std::vector< int > MultiDegree (VariableGroup const &vars) const override
 Get the multidegree of this node.
 
void precision (unsigned int prec) const override
 
void Reset () const override
 
- Public Member Functions inherited from bertini::node::Symbol
unsigned EliminateOnes () override
 A transform function, which eliminates nodes from the tree.
 
unsigned EliminateZeros () override
 A transform function, which eliminates nodes from the tree.
 
- Public Member Functions inherited from bertini::node::Node
template<typename T>
T Eval (std::shared_ptr< Variable > const &diff_variable=nullptr) const
 
template<typename T>
void EvalInPlace (T &eval_value, std::shared_ptr< Variable > const &diff_variable=nullptr) const
 
bool IsPolynomial (std::shared_ptr< Variable > const &v=nullptr) const
 
bool IsPolynomial (VariableGroup const &v) const
 
virtual unsigned ReduceDepth ()
 A mutating function which finds ways to reduce the depth of the tree.
 

Additional Inherited Members

- Protected Member Functions inherited from bertini::node::Node
void ResetStoredValues () const
 
- Static Protected Member Functions inherited from bertini::VisitableBase< RetT, CatchAll >
template<typename T>
static VisitReturnType AcceptBase (T &visited, VisitorBase &guest)
 Abstract method for how to accept a visitor.
 

Detailed Description

Number type for storing floating point numbers within an expression tree.

Number type for storing floating point numbers within an expression tree. The number passed in at construct time is stored as the true value, and evaluation down or up samples from this 'true value'. Consider using a Rational or Integer if possible.

Member Function Documentation

◆ print()

void bertini::node::Float::print ( std::ostream & target) const
overridevirtual

Virtual method for printing Nodes to arbitrary output streams.

Implements bertini::node::Node.


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