|
YASK
Yet Another Stencil Kit: a software framework for creating HPC stencil code. Copyright 2014-2023 Intel Corporation.
|
A numerical negation operator. More...
#include <yc_node_api.hpp>
Inheritance diagram for yask::yc_negate_node:Public Member Functions | |
| virtual yc_number_node_ptr | get_rhs ()=0 |
| Get the [only] operand. | |
Public Member Functions inherited from yask::yc_number_node | |
| virtual yc_number_node_ptr | clone_ast () const =0 |
| Create a deep copy of AST starting with this node. | |
Public Member Functions inherited from yask::yc_expr_node | |
| virtual std::string | format_simple () const =0 |
| Create a simple human-readable string. | |
| virtual int | get_num_nodes () const =0 |
| Count the size of the AST. | |
A numerical negation operator.
Example: used to implement -(a*b). Created via yc_node_factory::new_negate_node().
|
pure virtual |
Get the [only] operand.
This node implements unary negation only, not subtraction, so there is never a left-hand-side.
- sign.