How huffedkerd1/nabla works
This is a small C++ tensor library. Its demonstrated workflow constructs a tensor from values and a shape, then exposes shape and view operations; the sample entry point calls expand and shape. Tensor storage owns the underlying float buffer, while arithmetic operators and standalone broadcasting utilities provide additional capabilities. The excerpts show no use of broadcasting by the sample or arithmetic operators, so those are represented separately. nn/base/operation.hpp is only an empty stub. The graph reflects sampled code; the README is empty.
Main entry points: tensor.cpp Tensor core · arithmetic.cpp Arithmetic operators · main.cpp Tensor sample · storage.cpp Float storage
Components 6
Entry point
- Tensor sample
tensor/main.cpp
Tensor operations
- Tensor core
tensor/src/tensor.cpp - Arithmetic operators
tensor/src/operators/arithmetic.cpp
Memory storage
- Float storage
tensor/src/storage.cpp
Shape utilities
- Broadcasting utilities
tensor/src/broadcasting.cpp
Other components
- Caller
Connections 5
- Caller → Tensor sample: runs
tensor/main.cpp - Tensor sample → Tensor core: constructs and expands
tensor/main.cpp - Tensor core → Float storage: allocates and reads
tensor/src/tensor.cpp - Arithmetic operators → Float storage: reads values
tensor/src/operators/arithmetic.cpp - Arithmetic operators → Tensor core: constructs results
tensor/src/operators/arithmetic.cpp