Vecmath
SIMD Vectorization Math Library, built on top of veccore
Install / Use
/learn @root-project/VecmathREADME
Intro
The vecmath project provides a collection of vectorized based math utilities based on VecCore library.
Requirements
- VecCore(starting from cee2341)
- Optional: Vc, UMESIMD as VecCore backends
How to use.
1) Use VecMath installed package
Install this library.
mkdir build/ && cd build/
cmake ../ -DCMAKE_INSTALL_PREFIX=$PREFIX \
-DVecCore_DIR="path to dir with VecCoreConfig.cmake" #if VecCore is not installed inside prefix
make install
Use it from your project
In your CMakeLists.txt:
find_package(VecMath 0.1.0 REQUIRED COMPONENTS Vc) #or any other VecCore backend
#...
target_link_libraries(YOUR_TARGET VecMath::VecMath)
or if you can't use new cmake target_link_libraries use old interface
include_directories(${VecMath_INCLUDE_DIRS})
add_definitions(${VecMath_DEFINITIONS})
target_link_libraries(YOUR_TARGET ${VecMath_LIBRARIES})
Pass this to cmake generation of your project to find VecMath(if it is not in CMAKE_INSTALL_PREFIX):
-DVecMath_DIR="Path to dir where VecMathConfig.cmake is installed"
2) Build VecMath in source as a git submodule
Create git submodule in YOU_PROJECT/VecMath pointing to this repository
cd YOUR_PROJECT
git submodule add https://gitlab.cern.ch/GeantV/VecMath.git
In your CMakeLists.txt:
set(VecCore_BACKEND Vc) #or any other VecCore backend
add_subdirectory(VecMath)
#...
target_link_libraries(YOUR_TARGET VecMath)
API
Inside you .cxx file
#include <VecMath/Math.h>
#include <VecMath/Rng.h>
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
