11.2.13. rheia.UQ.pce.PCE.n_to_sum

PCE.n_to_sum(n, s)

This function creates a list of all possible vectors of length ‘n’ that sum to ‘s’

Parameters
  • n (int) – vector’s length (dimension)

  • s (int) – sum (total order)

Returns

  • list(n_to_sum(dimension,i))

Return type

The output is a generator object to be called as follows