rmath.Tensor
The rmath.Tensor class provides a dynamic computational graph for
reverse-mode automatic differentiation. It is highly optimized for CPU-bound deep
learning research and gradient-based optimization.
Proven: Backpropagation
The Autograd engine uses a lean, zero-dependency reverse-mode tape.
import rmath as rm
x = rm.Tensor([1.0, 2.0], requires_grad=True)
y = x * 2.0 + 5.0
z = y.sum()
z.backward()
print(f"Gradient dx: {x.grad}")
Gradient dx: Array([2.0000, 2.0000])