matten 0.22.5

A family-car multidimensional array (tensor) library for small numerical trials / PoCs.
Documentation
{
  "cases": [
    {
      "description": "vector dot product [3]ยท[3] -> scalar",
      "left_shape": [3],
      "left_data": [1.0, 2.0, 3.0],
      "right_shape": [3],
      "right_data": [4.0, 5.0, 6.0],
      "result_shape": [],
      "result_data": [32.0]
    },
    {
      "description": "[2,3] x [3,2] -> [2,2]",
      "left_shape": [2, 3],
      "left_data": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0],
      "right_shape": [3, 2],
      "right_data": [7.0, 8.0, 9.0, 10.0, 11.0, 12.0],
      "result_shape": [2, 2],
      "result_data": [58.0, 64.0, 139.0, 154.0]
    },
    {
      "description": "matrix-vector [2,3] x [3] -> [2]",
      "left_shape": [2, 3],
      "left_data": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0],
      "right_shape": [3],
      "right_data": [1.0, 0.0, 1.0],
      "result_shape": [2],
      "result_data": [4.0, 10.0]
    }
  ]
}