1 #ifndef CPPAD_CG_INDEPENDENT_SORTER_INCLUDED 2 #define CPPAD_CG_INDEPENDENT_SORTER_INCLUDED 34 CPPADCG_ASSERT_UNKNOWN(node1 ==
nullptr || node1->
getInfo().size() == 1);
35 CPPADCG_ASSERT_UNKNOWN(node2 ==
nullptr || node2->
getInfo().size() == 1);
36 CPPADCG_ASSERT_UNKNOWN(node1 ==
nullptr || node1->
getOperationType() == CGOpCode::Inv);
37 CPPADCG_ASSERT_UNKNOWN(node2 ==
nullptr || node2->
getOperationType() == CGOpCode::Inv);
40 if (node1 ==
nullptr) {
41 if (node2 ==
nullptr) {
45 }
else if (node2 ==
nullptr) {
49 size_t index1 = node1->
getInfo()[0];
50 size_t index2 = node2->
getInfo()[0];
bool operator()(const OperationNode< Base > *node1, const OperationNode< Base > *node2) const
CGOpCode getOperationType() const
const std::vector< size_t > & getInfo() const