From 73e1336ea3dc765f5a53bb066c1010c16301b7bc Mon Sep 17 00:00:00 2001 From: Elias Kohout <55064653+eliaskohout@users.noreply.github.com> Date: Fri, 8 Sep 2023 12:58:58 +0200 Subject: [PATCH] Created README.md --- README.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..da2e251 --- /dev/null +++ b/README.md @@ -0,0 +1,52 @@ +## ctensor +A simple C library implementing tensors. Still in development. Currently it only utilizes the CPU to enable mathematical operations with tensors. + +## Structure +``` +├── LICENSE +├── Makefile +├── dtype.h +├── tensor.c +├── tensor.h +├── tensorarray.c +├── tensorarray.h +├── tensoriter.c +├── tensoriter.h +└── tests + ├── main.c + ├── main.h + ├── tensor_assert.h + ├── tensor_test.c + ├── tensor_test.h + ├── tensoriter_test.c + └── tensoriter_test.h +``` + +`dtype.h` _The file that defines the data type for the contents of the tensor. The default is float._ + +`tensor.c` _The file that contains the main functions. This includes functions for creating, destroying, comparing, copying, mathematical operations and more._ + +`tensor.h` _The header file for tensor.c containing among ohter the definition of the tensor struct._ + +`tensorarray.c` _The file for array utility functions._ + +`tensorarray.h` _The header file for tensorarray.c._ + +`tensoriter.c` _The file for iterators over tensors and map functions._ + +`tensoriter.h` _The header file for tensoriter.c._ + +`tests` _The directory containing the unit tests._ + + +## TODOs + +- [ ] Ensure iterators iterate over same size tensors in the same order +- [ ] Making all functions work with random strides +- [ ] Adding a function for normalising strides +- [ ] Implementing dot product +- [ ] Implementing cross product +- [ ] Adding error codes +- [ ] Adding ability for persistently saving tensors to disk and loading them +- [ ] Adding views of tensor +- [ ] Implementing functions for transposing tensors