Skip to content
forked from erl987/alglib

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

Notifications You must be signed in to change notification settings

GerHobbelt/alglib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 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.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 88.0%
  • HTML 12.0%