pub fn dot(a: &WasmArray, b: &WasmArray) -> Result<WasmArray, JsValue>
Compute dot product (1D) or matrix multiplication (2D)