Represents a minus one SX. More...
#include <constant_sx.hpp>
Extra doc: https://github.com/casadi/casadi/wiki/L_1k5
Definition at line 350 of file constant_sx.hpp.
Public Member Functions | |
~MinusOneSX () override | |
void | serialize_node (SerializingStream &s) const override |
std::string | class_name () const override |
Get type name. More... | |
bool | is_constant () const override |
Properties. More... | |
casadi_int | op () const override |
Get the operation. More... | |
bool | is_equal (const SXNode *node, casadi_int depth) const override |
Check if two nodes are equivalent up to a given depth. More... | |
virtual const std::string & | name () const |
virtual Function | which_function () const |
Get called function. More... | |
virtual casadi_int | which_output () const |
Get function output. More... | |
virtual casadi_int | n_dep () const |
Number of dependencies. More... | |
virtual SXElem | get_output (casadi_int oind) const |
Get an output. More... | |
virtual const SXElem & | dep (casadi_int i) const |
get the reference of a child More... | |
virtual SXElem & | dep (casadi_int i) |
get the reference of a child More... | |
virtual bool | is_smooth () const |
Check if smooth. More... | |
virtual void | disp (std::ostream &stream, bool more) const |
print More... | |
void | can_inline (std::map< const SXNode *, casadi_int > &nodeind) const |
Find out which nodes can be inlined. More... | |
std::string | print_compact (std::map< const SXNode *, casadi_int > &nodeind, std::vector< std::string > &intermed) const |
Print compact. More... | |
bool | marked () const |
void | mark () const |
SXElem | shared_from_this () |
Get a shared object from the current internal object. More... | |
const SXElem | shared_from_this () const |
Get a shared object from the current internal object. More... | |
void | serialize (SerializingStream &s) const |
Serialize an object. More... | |
double | to_double () const override |
Get the value. More... | |
casadi_int | to_int () const override |
Get the value. More... | |
bool | is_integer () const override |
Properties. More... | |
bool | is_minus_one () const override |
Properties. More... | |
virtual bool | is_symbolic () const |
check properties of a node More... | |
virtual bool | is_zero () const |
check properties of a node More... | |
virtual bool | is_op (casadi_int op) const |
check properties of a node More... | |
virtual bool | is_almost_zero (double tol) const |
check properties of a node More... | |
virtual bool | is_one () const |
check properties of a node More... | |
virtual bool | is_nan () const |
check properties of a node More... | |
virtual bool | is_inf () const |
check properties of a node More... | |
virtual bool | is_minus_inf () const |
check properties of a node More... | |
virtual bool | is_call () const |
check properties of a node More... | |
virtual bool | is_output () const |
check properties of a node More... | |
virtual bool | has_output () const |
check properties of a node More... | |
Static Public Member Functions | |
static MinusOneSX * | singleton () |
static void | safe_delete (SXNode *n) |
Non-recursive delete. More... | |
static SXNode * | deserialize (DeserializingStream &s) |
Public Attributes | |
int | temp |
unsigned int | count |
Static Public Attributes | |
static casadi_int | eq_depth_ = 1 |
static std::map< casadi_int, SXNode *(*)(DeserializingStream &)> | deserialize_map |
Protected Member Functions | |
std::string | print (const std::string &arg1, const std::string &arg2) const override |
Print expression. More... | |
|
inlineoverride |
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_a6
Definition at line 113 of file sx_node.cpp.
References casadi::SXNode::can_inline(), casadi::SXNode::dep(), casadi::SXNode::n_dep(), casadi::SXNode::op(), and casadi::OP_PARAMETER.
Referenced by casadi::SXNode::can_inline(), and casadi::SXNode::disp().
|
inlineoverridevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_9y
Implements casadi::SXNode.
Definition at line 54 of file constant_sx.hpp.
|
virtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_a3
Reimplemented in casadi::UnarySX, casadi::OutputSX, casadi::CallSX, and casadi::BinarySX.
Definition at line 84 of file sx_node.cpp.
References casadi::SXNode::class_name().
|
virtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_a2
Reimplemented in casadi::UnarySX, casadi::OutputSX, casadi::CallSX, and casadi::BinarySX.
Definition at line 80 of file sx_node.cpp.
References casadi::SXNode::class_name().
Referenced by casadi::SXFunction::ad_forward(), casadi::SXFunction::ad_reverse(), casadi::SXElem::binary(), casadi::SXNode::can_inline(), casadi::SXElem::dep(), casadi::LinsolCall< Tr >::eval_sx(), casadi::SXFunction::eval_sx(), casadi::SXFunction::init(), casadi::SXNode::print_compact(), and casadi::SXNode::safe_delete().
|
staticinherited |
Definition at line 243 of file sx_node.cpp.
References casadi::BinarySX::deserialize(), casadi::UnarySX::deserialize(), casadi::SXNode::deserialize_map, casadi::SXNode::op(), casadi::str(), and casadi::DeserializingStream::unpack().
Referenced by casadi::SXElem::deserialize().
|
virtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_a5
Definition at line 88 of file sx_node.cpp.
References casadi::SXNode::can_inline(), and casadi::SXNode::print_compact().
Referenced by casadi::SXElem::disp().
|
virtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_293
Reimplemented in casadi::CallSX.
Definition at line 227 of file sx_node.cpp.
References casadi::SXNode::shared_from_this().
Referenced by casadi::SXElem::get_output().
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_9w
Reimplemented in casadi::CallSX.
Definition at line 82 of file sx_node.hpp.
Referenced by casadi::SXElem::has_output().
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_9w
Reimplemented in casadi::ZeroSX, and casadi::RealtypeSX.
Definition at line 74 of file sx_node.hpp.
Referenced by casadi::SXElem::is_almost_zero().
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_9w
Reimplemented in casadi::CallSX.
Definition at line 80 of file sx_node.hpp.
Referenced by casadi::SXElem::is_call().
|
inlineoverridevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1jl
Reimplemented from casadi::SXNode.
Definition at line 64 of file constant_sx.hpp.
|
inlineoverridevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1jn
Reimplemented from casadi::SXNode.
Definition at line 74 of file constant_sx.hpp.
References casadi::ConstantSX::to_double().
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_9w
Reimplemented in casadi::InfSX.
Definition at line 78 of file sx_node.hpp.
Referenced by casadi::SXElem::is_inf().
|
inlineoverridevirtual |
Extra doc: https://github.com/casadi/casadi/wiki/L_1k7
Reimplemented from casadi::SXNode.
Definition at line 375 of file constant_sx.hpp.
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_9w
Reimplemented in casadi::MinusInfSX.
Definition at line 79 of file sx_node.hpp.
Referenced by casadi::SXElem::is_minus_inf().
|
inlineoverridevirtual |
Extra doc: https://github.com/casadi/casadi/wiki/L_1k7
Reimplemented from casadi::SXNode.
Definition at line 376 of file constant_sx.hpp.
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_9w
Reimplemented in casadi::NanSX.
Definition at line 77 of file sx_node.hpp.
Referenced by casadi::SXElem::is_nan().
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_9w
Reimplemented in casadi::OneSX.
Definition at line 75 of file sx_node.hpp.
Referenced by casadi::SXElem::binary(), and casadi::SXElem::is_one().
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_9w
Reimplemented in casadi::UnarySX, casadi::SymbolicSX, casadi::CallSX, and casadi::BinarySX.
Definition at line 73 of file sx_node.hpp.
Referenced by casadi::SXElem::is_op().
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_9w
Reimplemented in casadi::OutputSX.
Definition at line 81 of file sx_node.hpp.
Referenced by casadi::SXElem::is_output().
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_a4
Reimplemented in casadi::UnarySX, and casadi::BinarySX.
Definition at line 144 of file sx_node.hpp.
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_9w
Reimplemented in casadi::SymbolicSX.
Definition at line 71 of file sx_node.hpp.
Referenced by casadi::SXFunction::init(), and casadi::SXElem::is_symbolic().
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_9w
Reimplemented in casadi::ZeroSX.
Definition at line 72 of file sx_node.hpp.
Referenced by casadi::SXElem::binary(), and casadi::SXElem::is_zero().
|
inherited |
Definition at line 109 of file sx_node.cpp.
References casadi::SXNode::temp.
|
inherited |
Definition at line 105 of file sx_node.cpp.
References casadi::SXNode::temp.
|
inlinevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_a1
Reimplemented in casadi::UnarySX, casadi::OutputSX, casadi::CallSX, and casadi::BinarySX.
Definition at line 124 of file sx_node.hpp.
Referenced by casadi::SXNode::can_inline(), casadi::SXElem::n_dep(), casadi::SXNode::print_compact(), and casadi::SXNode::safe_delete().
|
virtualinherited |
Reimplemented in casadi::SymbolicSX.
Definition at line 76 of file sx_node.cpp.
References casadi::SXNode::class_name().
Referenced by casadi::SXElem::name().
|
inlineoverridevirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1jm
Implements casadi::SXNode.
Definition at line 69 of file constant_sx.hpp.
References casadi::OP_CONST.
|
inlineoverrideprotectedvirtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_1jo
Implements casadi::SXNode.
Definition at line 84 of file constant_sx.hpp.
References casadi::ConstantSX::to_double().
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_a7
Definition at line 130 of file sx_node.cpp.
References casadi::SXNode::dep(), casadi::SXNode::n_dep(), casadi::Function::n_in(), casadi::Function::name(), casadi::Function::nnz_in(), casadi::SXNode::op(), casadi::OP_CALL, casadi::SXNode::print(), casadi::SXNode::print_compact(), and casadi::SXNode::which_function().
Referenced by casadi::SXNode::disp(), and casadi::SXNode::print_compact().
|
staticinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_a9
Definition at line 184 of file sx_node.cpp.
References casadi::SXElem::assignNoDelete(), casadi::SXNode::count, casadi::SXNode::dep(), and casadi::SXNode::n_dep().
Referenced by casadi::BinarySX::~BinarySX(), and casadi::UnarySX::~UnarySX().
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_aa
Definition at line 238 of file sx_node.cpp.
References casadi::SXNode::op(), casadi::SerializingStream::pack(), and casadi::SXNode::serialize_node().
|
inlineoverridevirtual |
Reimplemented from casadi::SXNode.
Definition at line 379 of file constant_sx.hpp.
References casadi::SerializingStream::pack().
|
inherited |
Definition at line 261 of file sx_node.cpp.
References casadi::SXNode::SXElem.
Referenced by casadi::SXNode::get_output(), and casadi::CallSX::get_output().
|
inherited |
Definition at line 265 of file sx_node.cpp.
References casadi::SXNode::SXElem.
|
inlinestatic |
Definition at line 356 of file constant_sx.hpp.
|
inlineoverridevirtual |
Extra doc: https://github.com/casadi/casadi/wiki/L_1k6
Implements casadi::ConstantSX.
Definition at line 367 of file constant_sx.hpp.
|
inlineoverridevirtual |
Extra doc: https://github.com/casadi/casadi/wiki/L_1k6
Reimplemented from casadi::SXNode.
Definition at line 368 of file constant_sx.hpp.
|
virtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_291
Reimplemented in casadi::CallSX.
Definition at line 64 of file sx_node.cpp.
References casadi::SXNode::class_name().
Referenced by casadi::SXNode::print_compact(), and casadi::SXElem::which_function().
|
virtualinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_292
Reimplemented in casadi::OutputSX.
Definition at line 68 of file sx_node.cpp.
References casadi::SXNode::class_name().
Referenced by casadi::SXElem::which_output().
|
inherited |
Definition at line 197 of file sx_node.hpp.
Referenced by casadi::SXElem::assignNoDelete(), casadi::SXElem::operator=(), casadi::SXNode::safe_delete(), casadi::SXElem::SXElem(), casadi::SXNode::SXNode(), casadi::UniversalNodeOwner::UniversalNodeOwner(), casadi::InfSX::~InfSX(), casadi::MinusInfSX::~MinusInfSX(), ~MinusOneSX(), casadi::NanSX::~NanSX(), casadi::OneSX::~OneSX(), casadi::SXElem::~SXElem(), casadi::SXNode::~SXNode(), and casadi::ZeroSX::~ZeroSX().
|
staticinherited |
Definition at line 209 of file sx_node.hpp.
Referenced by casadi::SXNode::deserialize().
|
staticinherited |
Definition at line 179 of file sx_node.hpp.
Referenced by casadi::SXElem::binary(), casadi::Matrix< Scalar >::get_max_depth(), casadi::SXElem::is_doubled(), and casadi::Matrix< Scalar >::set_max_depth().
|
mutableinherited |
Temporary variables to be used in user algorithms like sorting, the user is responsible of making sure that use is thread-safe The variable is initialized to zero
Definition at line 191 of file sx_node.hpp.
Referenced by casadi::SXFunction::init(), casadi::SXNode::mark(), casadi::SXNode::marked(), and casadi::SXNode::SXNode().