Expression solvers

Expression solvers#

einx.solve_shapes

Solve for the shapes of the einx expressions under the given constraints.

einx.solve_axes

Solve for the length of all axes in an expression under the given constraints.

einx.matches

Returns whether the given tensors match the einx expression description under the given constraints.