TrainSum.binary_train(shape, eqs)

Construct a tensor train from a sequence of integer equations. The resulting tensor train has entries 1 at the indices where all equations are satisfied and zero otherwise.

Parameters:
  • shape (TrainShape)

  • eqs (Sequence[IntegerEquation])

Return type:

TensorTrain