gana.sets.theta#

Functions

display(*objs[, include, exclude, metadata, ...])

Display a Python object in all frontends.

make_P(inp[, index])

Make input into a parameter set (P)

prod(iterable, /, *[, start])

Calculate the product of all the elements in the input iterable.

warn

Issue a warning, or maybe ignore it or raise an exception.

Classes

Elem(*values)

Type of function

F([one, two, one_type, two_type, mul, add, ...])

Provides relational operations between parameter, variable, parametric variable, or function sets (F).

I(*members[, size, start, mutable, tag, ...])

Set of index elements (X).

Math([data, url, filename, metadata])

T(*index[, _, tag, mutable, ltx, name])

Ordered set of parametric variables (theta).

V(*index[, itg, nn, bnr, mutable, tag, ltx, ...])

Ordered set of variables (Var).

product(*iterables[, repeat])

Cartesian product of input iterables.

class T(*index: I, _: list[tuple[float]] | tuple[float] | None = None, tag: str | None = None, mutable: bool = False, ltx: str | None = None, name: str = '')[source]#

Bases: _E

Ordered set of parametric variables (theta).

Parameters:
  • index (I) – Index for the theta set.

  • _ (list[tuple[float]] | tuple[float]) – Values for the theta set.

  • mutable (bool, optional) – If True, the theta set can be modified. Defaults to False.

  • tag (str, optional) – Tag for the theta set. Defaults to None.

Variables:
  • index (I) – Index of the parametric variable set

  • _ (list[int | float]) – List of parametric variables

  • mutable (bool) – If the parametric variable set is mutable

  • tag (str) – Tag/details

  • name (str) – Name, set by the program

  • n (int) – Number id, set by the program

  • map (dict[X | Idx, Var]) – Index to parameter mapping

property args: dict[str, str | bool]#

Return the arguments of the parametric variable set

Returns:

Dictionary of arguments

Return type:

dict

create_map()[source]#

Create a map of indices to parameters

birth_thetas(mutating: bool = False, n_start=0)[source]#

Births a parametric variable (Theta) at every index in the index set

Parameters:
  • mutating (bool, optional) – If the variable set is being mutated. Defaults to False.

  • n_start (int, optional) – The starting number for positioning the variables. Defaults to 0.

property CrA#

A matric of critical region

property CrB#

B matrix of critical region

property ltx: str#

LaTeX representation of the parametric variable set

property longname: str#

Long name representation

latex() str[source]#

LaTeX representation

show(descriptive: bool = False)[source]#

Display the variables

Parameters:

descriptive (bool, optional) – Print members of the index set