- Notifications
You must be signed in to change notification settings - Fork0
Fast C++17 Header-Only Expression Template Matrix and Tensor Library
License
Mathific/Tense
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Tense is a C++17 matrix and tensor library. It is a fast expression template library that uses auto-vectorization. It also usesCBLAS andLAPACKE for linear algebra operations.
You can installTense system-wide by downloading thelatest release. Make sure you haveCMake, aC++ compiler (the newer version, the faster),CBLAS andLAPACKE available on your system. Then run these in repository directory:
mkdir buildcd buildcmake -DCMAKE_BUILD_TYPE=Release -DTENSE_NATIVE=ON -DTENSE_INSTALL=ON -DTENSE_TESTS=OFF -DTENSE_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=/usr/local/ ..sudo cmake --install.
TheCMake options are:
TENSE_INSTALL: Create install forTense.TENSE_TESTS: Build the tests forTense.TENSE_EXAMPLES: Build the examples forTense.TENSE_NATIVE: Targets that link againstTenseare specifically tuned for host CPU. This makes auto-vectorization possible.
Note that this installsBLASW library too. Then you can use it inCMake:
find_package(Tense REQUIRED)add_executable(myexec main.cpp)target_link_libraries(myexec Tense::Tense)
Or you can useTense as aCMake subdirectory by cloning the repository and putting it in your source directory and use it inCMake:
add_subdirectory(Tense/)add_executable(myexec main.cpp)target_link_libraries(myexec Tense::Tense)Documentation ofTense API ishere.
You can report bugs, ask questions and request features onissues page.
This library is licensed under BSD 3-Clause permissive license. You can read ithere.
About
Fast C++17 Header-Only Expression Template Matrix and Tensor Library
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.