This module provides a basic Tensor class for numerical operations, primarily supporting 2D tensors (matrices).
new
Tensor(data: number[][])
Creates a new Tensor instance. Currently supports 2D tensors (matrices).
Performs element-wise addition with another tensor. The shapes of the two tensors must be identical.
Performs matrix multiplication with another tensor. The number of columns in the first tensor must match the number of rows in the second tensor.