TypeTensor - v0.1.0
    Preparing search index...

    Type Alias CanReshape<From, To>

    CanReshape: Product<From> extends Product<To>
        ? Product<To> extends Product<From> ? true : false
        : false

    Validate that a reshape is valid (same total elements)

    Type Parameters

    type Valid = CanReshape<[2, 6], [3, 4]> // true (both have 12 elements)
    type Invalid = CanReshape<[2, 3], [4, 5]> // false (6 vs 20 elements)