Stacked

Stacked(parameters, name=None, **kwargs)[source]

Combine multiple scalar or identically-shaped Parameters into a single vectorized Parameter.

This acts as the inverse of Parameter.flattened().

Parameters:
  • parameters (Sequence[Parameter]) – The list/tuple of Parameter objects to stack.

  • name (str, optional) – The overarching name for the new stacked parameter.

  • **kwargs – Additional arguments passed to the Parameter constructor.

Returns:

A new parameter containing the stacked values and distributions.

Return type:

Parameter