mm.math.new_variable

math.new_variable(bounds, name, dtype=None)

Returns a new variable with the given value and bounds.

Parameters:
  • value (ndarray[Tuple[int, ...], Union[TypeVar(R, float16, float32, float64), TypeVar(C, complex64, complex128), TypeVar(Z, int16, int32, int64), TypeVar(N, uint16, uint32, uint64)]]) – The value of the new variable.

  • bounds (Tuple[Optional[float], Optional[float]]) – The bounds of the new variable.

  • name (str) – The name of the new variable.

  • dtype – dtype of the new variable. If None, casts it to float.

Return type:

ndarray[Tuple[int, ...], Union[TypeVar(R, float16, float32, float64), TypeVar(C, complex64, complex128), TypeVar(Z, int16, int32, int64), TypeVar(N, uint16, uint32, uint64)]]

Returns:

The new variable.