main
Brett 2024-07-20 21:35:02 -04:00
parent e6760e1147
commit 9d53c180e9
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.25) cmake_minimum_required(VERSION 3.25)
project(image-gp-6 VERSION 0.0.15) project(image-gp-6 VERSION 0.0.16)
include(FetchContent) include(FetchContent)

View File

@ -25,16 +25,16 @@
inline blt::gp::operation_t f_add([](float a, float b) { inline blt::gp::operation_t f_add([](float a, float b) {
return a + b; return a + b;
}, "add"); }, "f_add");
inline blt::gp::operation_t f_sub([](float a, float b) { inline blt::gp::operation_t f_sub([](float a, float b) {
return a - b; return a - b;
}, "sub"); }, "f_sub");
inline blt::gp::operation_t f_mul([](float a, float b) { inline blt::gp::operation_t f_mul([](float a, float b) {
return a * b; return a * b;
}, "mul"); }, "f_mul");
inline blt::gp::operation_t f_pro_div([](float a, float b) { inline blt::gp::operation_t f_pro_div([](float a, float b) {
return b == 0.0f ? 0.0f : (a / b); return b == 0.0f ? 0.0f : (a / b);
}, "div"); }, "f_div");
inline blt::gp::operation_t f_literal([]() { inline blt::gp::operation_t f_literal([]() {
return program.get_random().get_float(0.0, 1.0); return program.get_random().get_float(0.0, 1.0);
}, "float_lit"); }, "float_lit");