Nothing Special   »   [go: up one dir, main page]

Skip to content
/ tensor Public

A fast, zero-dependency tensor library in under 1000 lines of C++

License

Notifications You must be signed in to change notification settings

oniani/tensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tensor

A fast, zero-dependency tensor library in under 1000 lines of C++.

API

#include "tensor.hpp"

using namespace type;

int main() {
  tensor2<float> t{{0, 1}, {2, 3}, {4, 5}};
  t.square().print();
}

Testing

$ mkdir build
$ cd build
$ cmake -DCOMPILER=clang -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=VCPKG_TOOLCHAIN_FILE ..
$ cmake --build .

References

License

MIT License

About

A fast, zero-dependency tensor library in under 1000 lines of C++

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published