Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fast C++17 Header-Only Expression Template Matrix and Tensor Library

License

NotificationsYou must be signed in to change notification settings

Mathific/Tense

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Installation

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 againstTense are 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)

Usage

Documentation ofTense API ishere.

Contributing

You can report bugs, ask questions and request features onissues page.

License

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2026 Movatter.jp