Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saptakbhoumik/ouroboros

Ouroboros is a C++ library to work with N dimentional tensors
https://github.com/saptakbhoumik/ouroboros

cpp cpp20 cpp20-library ouroboros tensor

Last synced: 2 months ago
JSON representation

Ouroboros is a C++ library to work with N dimentional tensors

Awesome Lists containing this project

README

        

# Ouroboros

Ouroboros is a C++ library to work with N dimentional tensors

## Why?

Well the main reason that this library exists is for personal use in my other projects. The only reason that it is public is because some people may find it useful

## Goals

- Make it easy to use
- Give the bare minimum features so that it can be easily extended(with minimal code) to meet that users need

## Example usage

```cpp
#include

int main(){
Ouroboros::Tensor t1=Ouroboros::CreateTensor::linspace({3,3},1.0,9.0);
std::cout<<"t2:\n"<double{
return x*y;
};
Ouroboros::Tensor t3=Ouroboros::outer(t1,t2);//Outer product of 2 tensors
std::cout<<"t3:\n"<double{
return std::sin(x);
};
t3=Ouroboros::transform(t3);//Apply sin to all elements of t3
std::cout<<"sin(t3):\n"<