Skip to content
/ alglib Public

The mathematical ALGLIB library for C++ with CMake support.

Notifications You must be signed in to change notification settings

erl987/alglib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ALGLIB

The mathematical ALGLIB library for C++ with CMake support.

Usage

The integration of ALGLIB into a code base using this repository can be done like this:

  cd project-root
  git submodule add https://github.com/erl987/alglib.git libraries/Alglib

Now add this subdirectory in the CMakeLists.txt file in the project root directory:

  add_subdirectory(libraries/Alglib)

Link it in the CMakeLists.txt file where ALGLIB is used:

  target_link_libraries(project PUBLIC Alglib) 

Now ALGLIB can be included in this module, e.g.:

#include "libalglib/fasttransforms.h"

Optionally compiler optimizations can be enabled:

  # enable SSE-optimizations for the Alglib-library on the supported platforms
  if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "(x86)|(X86)|(amd64)|(AMD64)")
    target_compile_definitions(project PUBLIC AE_CPU=AE_INTEL)
  endif()

Acknowledgements

The original library is provided under https://www.alglib.net.

About

The mathematical ALGLIB library for C++ with CMake support.

Topics

Resources

Stars

Watchers

Forks