one_hotΒΆ
- one_hot(poly: Poly, label: str = '') Constraint ΒΆ
- one_hot(array: PolyArray, label: str = '', axis: Literal[None] | None = None) Constraint
- one_hot( ) Constraint | ConstraintList
one_hot
- Overloading:
1. one_hot(poly: amplify.Poly, label: str = ββ) -> amplify.Constraint
- Args:
poly (amplify.Poly):
label (str): Defaults to
''
.
- Returns:
amplify.Constraint:
2. one_hot(array: amplify.PolyArray, label: str = ββ, axis: Optional[Literal[None]] = None) -> amplify.Constraint
- Args:
array (amplify.PolyArray):
label (str): Defaults to
''
.axis (Literal[None] | None): Defaults to
None
.
- Returns:
amplify.Constraint:
3. one_hot(array: amplify.PolyArray, label: str = ββ, axis: Optional[Union[int, tuple[int, β¦]]] = None) -> Union[amplify.Constraint, amplify.ConstraintList]
- Args:
array (amplify.PolyArray):
label (str): Defaults to
''
.axis (int | tuple[int, β¦] | None): Defaults to
None
.
- Returns:
amplify.Constraint | amplify.ConstraintList: