Build a tensor parameter from a term, composition, variable factory, or constant.
Must be called within a pm.Model context.
- Parameters:
- param
ModelTerm | Sum | Product | VariableFactory | int | float | xr.DataArray The term(s) or variable factory to build into a tensor.
- name
str Variable name used when building standalone VariableFactory
objects. Terms handle their own naming internally.
- Returns:
pt.TensorVariable or floatThe parameter tensor (XTensorVariable when dimensional).