mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 17:10:38 +08:00
5010421bb7
Before this patch the return type was implicitly defined by the ExpressionType. This patch separates this connection and allows each Expression to have one of the predefined types (scalar, boolean, void). This patch is required to add support for the functions isfinite, isinf, isnan, and isnormal. These are function taking a double and returning a bool. This also moves some complexity of the code generator to the Expression, because the generator can direclty get the c++ type. Change-Id: I8b32bab1bfab2f668875e506d6f3b789a5d1f3fd