|
| | constant_node (const backend::buffer< T > &d) |
| | Construct a constant node from a vector.
|
| |
| virtual backend::buffer< T > | evaluate () |
| | Evaluate method.
|
| |
| virtual shared_leaf< T, SAFE_MATH > | reduce () |
| | Reduction method.
|
| |
| virtual shared_leaf< T, SAFE_MATH > | df (shared_leaf< T, SAFE_MATH > x) |
| | Transform node to derivative.
|
| |
| virtual shared_leaf< T, SAFE_MATH > | compile (std::ostringstream &stream, jit::register_map ®isters, jit::register_map &indices, const jit::register_usage &usage) |
| | Compile the node.
|
| |
| virtual bool | is_match (shared_leaf< T, SAFE_MATH > x) |
| | Querey if the nodes match.
|
| |
|
bool | is (const T d) |
| | Check if the constant is value.
|
| |
|
bool | is_integer () |
| | Check if the value is an integer.
|
| |
| virtual void | to_latex () const |
| | Convert the node to latex.
|
| |
| virtual shared_leaf< T, SAFE_MATH > | to_vizgraph (std::stringstream &stream, jit::register_map ®isters) |
| | Convert the node to vizgraph.
|
| |
| virtual bool | is_constant () const |
| | Test if node is a constant.
|
| |
| virtual bool | has_constant_zero () const |
| | Test the constant node has a zero.
|
| |
| virtual bool | is_all_variables () const |
| | Test if node acts like a variable.
|
| |
| virtual bool | is_power_like () const |
| | Test if the node acts like a power of variable.
|
| |
| virtual shared_leaf< T, SAFE_MATH > | get_power_base () |
| | Get the base of a power.
|
| |
| virtual shared_leaf< T, SAFE_MATH > | get_power_exponent () const |
| | Get the exponent of a power.
|
| |
| | leaf_node (const std::string s, const size_t count, const bool pseudo) |
| | Construct a basic node.
|
| |
|
virtual | ~leaf_node () |
| | Destructor.
|
| |
| virtual std::shared_ptr< leaf_node< T, SAFE_MATH > > | df (std::shared_ptr< leaf_node< T, SAFE_MATH > > x)=0 |
| | Transform node to derivative.
|
| |
| virtual void | compile_preamble (std::ostringstream &stream, jit::register_map ®isters, jit::visiter_map &visited, jit::register_usage &usage, jit::texture1d_list &textures1d, jit::texture2d_list &textures2d, int &avail_const_mem) |
| | Compile preamble.
|
| |
| virtual bool | is_match (std::shared_ptr< leaf_node< T, SAFE_MATH > > x) |
| | Querey if the nodes match.
|
| |
| bool | is_power_base_match (std::shared_ptr< leaf_node< T, SAFE_MATH > > x) |
| | Check if the base of the powers match.
|
| |
| virtual void | set (const T d) |
| | Set the value of variable data.
|
| |
| virtual void | set (const size_t index, const T d) |
| | Set the value of variable data.
|
| |
| virtual void | set (const std::vector< T > &d) |
| | Set the value of variable data.
|
| |
| virtual void | set (const backend::buffer< T > &d) |
| | Set the value of variable data.
|
| |
| bool | is_normal () |
| | Test if the result is normal.
|
| |
| size_t | get_hash () const |
| | Get the hash for the node.
|
| |
| size_t | get_complexity () const |
| | Get the number of nodes in the subgraph.
|
| |
| virtual bool | has_pseudo () const |
| | Query if the node contains pseudo variables.
|
| |
| virtual std::shared_ptr< leaf_node< T, SAFE_MATH > > | remove_pseudo () |
| | Remove pseudo variable nodes.
|
| |
| virtual void | endline (std::ostringstream &stream, const jit::register_usage &usage) const final |
| | End a line in the kernel source.
|
| |
Class representing data that cannot change.
- Template Parameters
-
| T | Base type of the calculation. |
| SAFE_MATH | Use Safe Math operations. |