powered by
x
x is reshapeable to dim if the number of elements in x equal the number of elements implied by dim, i.e. prod(dim).
dim
prod(dim)
is_reshapeable(x, dim)