update 2.0

This commit is contained in:
张壹 2025-04-23 14:19:54 +08:00
parent 1022227780
commit aee70724c0
9 changed files with 27 additions and 21 deletions

View File

@ -1,9 +1,12 @@
cmake_minimum_required(VERSION 3.15.2) cmake_minimum_required(VERSION 3.15.2)
# #
project(GCTL_OPTIMIZATION VERSION 1.0) project(GCTL_OPTIMIZATION VERSION 2.0)
# #
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)
# ExprTKmacOS 15.4
add_compile_options(-Wno-missing-template-arg-list-after-template-kw)
message(STATUS "Platform: " ${CMAKE_HOST_SYSTEM_NAME}) message(STATUS "Platform: " ${CMAKE_HOST_SYSTEM_NAME})
message(STATUS "Install prefix: " ${CMAKE_INSTALL_PREFIX}) message(STATUS "Install prefix: " ${CMAKE_INSTALL_PREFIX})
message(STATUS "Processor: " ${CMAKE_HOST_SYSTEM_PROCESSOR}) message(STATUS "Processor: " ${CMAKE_HOST_SYSTEM_PROCESSOR})

View File

@ -26,6 +26,7 @@
******************************************************/ ******************************************************/
#include "../lib/optimization.h" #include "../lib/optimization.h"
#include "gctl/math/gaussfunc.h"
using namespace gctl; using namespace gctl;

View File

@ -28,10 +28,10 @@
#ifndef _GCTL_CLCG_H #ifndef _GCTL_CLCG_H
#define _GCTL_CLCG_H #define _GCTL_CLCG_H
#include "gctl/utility.h" #include "gctl/core/array.h"
#include "gctl/core.h" #include "gctl/math/gmath.h"
#include "gctl/maths.h" #include "gctl/math/linear_algebra.h"
#include "gctl/algorithms.h" #include "gctl/io/term_io.h"
#include "gctl_optimization_config.h" #include "gctl_optimization_config.h"
#ifdef GCTL_OPTIMIZATION_TOML #ifdef GCTL_OPTIMIZATION_TOML

View File

@ -29,6 +29,7 @@
#define _GCTL_COMMON_GRADIENT_H #define _GCTL_COMMON_GRADIENT_H
#include "lcg.h" #include "lcg.h"
#include "gctl/io/file_io.h"
namespace gctl namespace gctl
{ {

View File

@ -28,10 +28,9 @@
#ifndef _GCTL_LBFGS_H #ifndef _GCTL_LBFGS_H
#define _GCTL_LBFGS_H #define _GCTL_LBFGS_H
#include "gctl/utility.h" #include "gctl/core/array.h"
#include "gctl/core.h" #include "gctl/math/linear_algebra.h"
#include "gctl/maths.h" #include "gctl/io/term_io.h"
#include "gctl/algorithms.h"
#include "gctl_optimization_config.h" #include "gctl_optimization_config.h"
#ifdef GCTL_OPTIMIZATION_TOML #ifdef GCTL_OPTIMIZATION_TOML

View File

@ -39,9 +39,10 @@
#include "windows.h" #include "windows.h"
#endif // _WINDOWS || __WIN32__ #endif // _WINDOWS || __WIN32__
#include "gctl/utility/stream_t.h" #include "gctl/core/str.h"
#include "gctl/utility/stream.h" #include "gctl/math/linear_algebra.h"
#include "gctl/maths/linear_algebra.h" #include "gctl/io/term_io.h"
#include "gctl/io/file_io.h"
namespace gctl namespace gctl
{ {

View File

@ -41,10 +41,10 @@
#include "omp.h" #include "omp.h"
#endif // GSTL_OPENMP #endif // GSTL_OPENMP
#include "gctl/core.h" #include "gctl/core/array.h"
#include "gctl/io.h" #include "gctl/io/term_io.h"
#include "gctl/maths.h" #include "gctl/io/file_io.h"
#include "gctl/algorithms.h" #include "gctl/math/linear_algebra.h"
namespace gctl namespace gctl
{ {

View File

@ -28,9 +28,10 @@
#ifndef _GCTL_SGD_H #ifndef _GCTL_SGD_H
#define _GCTL_SGD_H #define _GCTL_SGD_H
#include "gctl/utility.h" #include "gctl/core/array.h"
#include "gctl/core.h" #include "gctl/io/term_io.h"
#include "gctl/algorithms.h" #include "gctl/io/file_io.h"
#include "gctl/math/linear_algebra.h"
#include "gctl_optimization_config.h" #include "gctl_optimization_config.h"
#ifdef GCTL_OPTIMIZATION_TOML #ifdef GCTL_OPTIMIZATION_TOML

View File

@ -28,8 +28,8 @@
#ifndef _GCTL_SVD_H #ifndef _GCTL_SVD_H
#define _GCTL_SVD_H #define _GCTL_SVD_H
#include "gctl/core.h" #include "gctl/core/array.h"
#include "gctl/algorithms.h" #include "gctl/math/linear_algebra.h"
namespace gctl namespace gctl
{ {