@@ -14,11 +14,17 @@ using namespace cadabra;
1414
1515// #define DEBUG 1
1616
17+ #ifndef NO_SYMPY
18+
1719sympy::SympyBridge::SympyBridge (const Kernel& k, std::shared_ptr<Ex> ex)
1820 : DisplaySympy(k, *ex), ex(ex)
1921 {
2022 }
2123
24+ sympy::SympyBridge::~SympyBridge ()
25+ {
26+ }
27+
2228pybind11::object sympy::SympyBridge::export_ex ()
2329 {
2430 std::ostringstream str;
@@ -52,6 +58,7 @@ void sympy::SympyBridge::import_ex(const std::string& s)
5258 ex->move_ontop (orig, first);
5359 }
5460
61+ #endif
5562
5663Ex::iterator sympy::apply (const Kernel& kernel, Ex& ex, Ex::iterator& it, const std::vector<std::string>& wrap, std::vector<std::string> args,
5764 const std::string& method)
@@ -210,7 +217,7 @@ void sympy::invert_matrix(const Kernel& kernel, Ex& ex, Ex& rules, const Ex& toc
210217 if (el->is_zero ()==false ) {
211218 Ex rule (" \\ equals" );
212219 auto rit = rule.append_child (rule.begin (), tocompute.begin ());
213- auto cvit = rule.append_child (rule.begin (), Ex::iterator (el));
220+ /* auto cvit = */ rule.append_child (rule.begin (), Ex::iterator (el));
214221 auto i = rule.begin (rit);
215222 // std::cerr << c1 << ", " << c2 << std::endl;
216223 i = rule.replace_index (i, prop1->values [c1].begin (), true );
0 commit comments