Commit bbcdcd64 authored by Jan Philipp Haller's avatar Jan Philipp Haller
Browse files

Removed generated namespace in MathAbs target, as other Math targets had no...

Removed generated namespace in MathAbs target, as other Math targets had no explicit namespace as well.
parent d7f77758
Pipeline #321006 failed with stage
in 3 minutes and 34 seconds
......@@ -66,7 +66,14 @@ public class MathAbsCommand extends MathCommand {
valueListString += ExecuteMethodGenerator.generateExecuteCode(mathExpressionSymbol, new ArrayList<String>());
//OctaveHelper.getCallOctaveFunction(mathExpressionSymbol, "sum","Double", valueListString));
List<MathMatrixAccessSymbol> newMatrixAccessSymbols = new ArrayList<>();
MathStringExpression stringExpression = new MathStringExpression("std::abs"+valueListString,mathMatrixNameExpressionSymbol.getMathMatrixAccessOperatorSymbol().getMathMatrixAccessSymbols());
//TODO: Switch "std::" with "cppad::" if using ipopt.
// 0 - Why is std:: used in the first place? the other commands don't utilize the namespace
// 1 - How to determine if ipopt is used?
MathStringExpression stringExpression = new MathStringExpression("abs"+valueListString,mathMatrixNameExpressionSymbol.getMathMatrixAccessOperatorSymbol().getMathMatrixAccessSymbols());
//Old
//MathStringExpression stringExpression = new MathStringExpression("std::abs"+valueListString,mathMatrixNameExpressionSymbol.getMathMatrixAccessOperatorSymbol().getMathMatrixAccessSymbols());
newMatrixAccessSymbols.add(new MathMatrixAccessSymbol(stringExpression));
mathMatrixNameExpressionSymbol.getMathMatrixAccessOperatorSymbol().setMathMatrixAccessSymbols(newMatrixAccessSymbols);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment