Using the following code in Python, I'm expecting the resulting generated code to use floats because of FLOAT='True'. Instead, it looks like the generated code is still using doubles.
// QDLDL integer and float types
typedef long long QDLDL_int; /* for indices */
typedef double QDLDL_float; /* for numerical values */
typedef unsigned char QDLDL_bool; /* for boolean values */
Compiling
Running the CMakeLists.txt file, it also shows Floats are still disabled.
-- We are on a Generic system
-- Embedded is 1
-- Passing EMBEDDED flag to compiler
-- Disabling printing for embedded
-- Printing is OFF
-- Disabling profiling for embedded
-- Profiling is OFF
-- Floats are OFF
-- Disabling long integers (64bit) on 32bit machine
-- Long integers (64bit) are OFF
Issue
Using the following code in Python, I'm expecting the resulting generated code to use floats because of
FLOAT='True'
. Instead, it looks like the generated code is still using doubles.Outputs the following to the console along with the generated files.
In
osqp_gen > include > osqp_configure.h
I see:In
osqp_gen > include > qdldl_types.h
I see:Compiling
Running the
CMakeLists.txt
file, it also shows Floats are still disabled.