Skip to content

Repository files navigation

C++ Tensor Library

Tensor library is inspired by numpy and is implemented with similar API.

Prerequist

  • libu (for logging and test)
  • gcc
  • -std > c++11

Workflow

u-tensor.hpp --> u-op.hpp --> u-cpu-op.hpp
|
V
u-gpu-op.hpp

Call Process Example [tensor.add]

add (function) --> u::op::Add (class) --> u::op::cpu::add (function) --> u::aop::Add (class)
|
V
u::op::gpu::add (function)

ToDo

  • Expression template to implement effectively element-wise operation. Such as a = b + c + d + e + f
  • BLAS introduction
  • gpu CUDA implementation
  • indexing
  • assert ==> Exception

About

tensor library for C++

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages