[poincare] First version of Simplification with matrix (no tests yet!)

Change-Id: I28ad4750ad31995836b23725f7d715669fcb7ae2
This commit is contained in:
Émilie Feral
2017-11-09 11:14:38 +01:00
parent 8aa4444337
commit d5fc8d139f
145 changed files with 1972 additions and 1331 deletions

View File

@@ -17,17 +17,17 @@ VariableContext<T>::VariableContext(char name, Context * parentContext) :
template<typename T>
void VariableContext<T>::setExpressionForSymbolName(const Expression * expression, const Symbol * symbol) {
if (symbol->name() == m_name) {
/*if (symbol->name() == m_name) {
if (expression == nullptr) {
return;
}
Evaluation<T> * evaluation = expression->evaluate<T>(*m_parentContext);
/* WARNING: We assume that the evaluation of expression is a real */
* WARNING: We assume that the evaluation of expression is a real *
m_value = Complex<T>::Float(evaluation->toScalar());
delete evaluation;
} else {
m_parentContext->setExpressionForSymbolName(expression, symbol);
}
}*/
}
template<typename T>