mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 10:09:53 +01:00
[poincare] First version of Simplification with matrix (no tests yet!)
Change-Id: I28ad4750ad31995836b23725f7d715669fcb7ae2
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user