TypeTensor - v0.1.0
    Preparing search index...

    Type Alias Matmul<A, B>

    Matmul: CanMatmul<A["__shape"], B["__shape"]> extends true
        ? MatmulOp<A, B>
        : CanMatmul<A["__shape"], B["__shape"]>

    User-facing matrix multiplication type with enhanced error messages

    This provides better developer experience by using CanMatmul which gives detailed error messages for incompatible shapes.

    Type Parameters

    type A = TensorStorage<Float32, [2, 3]>;
    type B = TensorStorage<Float32, [3, 4]>;
    type Result = Matmul<A, B>; // Output shape: [2, 4]
    type Vector = TensorStorage<Float32, [5]>;
    type DotProduct = Matmul<Vector, Vector>; // Output shape: [] (scalar)