IsingPolyArray¶
- class IsingPolyArray¶
Bases:
PolyArray
Methods
__init__
copy
decode
diagonal
evaluate
fill
flatten
nonzero
ravel
repeat
reshape
roll
substitute
sum
swapaxes
take
to_list
to_numpy
alias of
to_list()
alias of
to_numpy()
transpose
view
Attributes
- __init_subclass__()¶
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- __setitem__(
- self,
- arg: tuple | slice | EllipsisType | int | None,
- value: Poly | float | int | list | ndarray | PolyArray,
__setitem__
- decode(self, values: Values) ndarray[Any, dtype[numpy.float64]] ¶
- decode(self, values: Values, default: float) ndarray[Any, dtype[numpy.float64]]
- decode(self, values: Values, default: None | None) PolyArray
decode
- Overloading:
1. decode(self, values: amplify.Values) -> numpy.ndarray[Any, numpy.dtype[numpy.float64]]
- Args:
values (amplify.Values):
- Returns:
numpy.ndarray:
2. decode(self, values: amplify.Values, default: float) -> numpy.ndarray[Any, numpy.dtype[numpy.float64]]
- Args:
values (amplify.Values):
default (float):
- Returns:
numpy.ndarray:
3. decode(self, values: amplify.Values, default: Optional[None]) -> amplify.PolyArray
- Args:
values (amplify.Values):
default (None | None):
- Returns:
amplify.PolyArray:
- evaluate(self, values: Values) ndarray[Any, dtype[numpy.float64]] ¶
- evaluate(self, values: Values, default: float) ndarray[Any, dtype[numpy.float64]]
- evaluate(self, values: Values, default: None | None) PolyArray
evaluate
- Overloading:
1. evaluate(self, values: amplify.Values) -> numpy.ndarray[Any, numpy.dtype[numpy.float64]]
- Args:
values (amplify.Values):
- Returns:
numpy.ndarray:
2. evaluate(self, values: amplify.Values, default: float) -> numpy.ndarray[Any, numpy.dtype[numpy.float64]]
- Args:
values (amplify.Values):
default (float):
- Returns:
numpy.ndarray:
3. evaluate(self, values: amplify.Values, default: Optional[None]) -> amplify.PolyArray
- Args:
values (amplify.Values):
default (None | None):
- Returns:
amplify.PolyArray:
- reshape(self, shape: int | tuple[int, ...]) PolyArray ¶
- reshape(self, *shape: int) PolyArray
reshape
- Overloading:
1. reshape(self, shape: Union[int, tuple[int, …]]) -> amplify.PolyArray
- Args:
shape (int | tuple[int, …]):
- Returns:
amplify.PolyArray:
2. reshape(self, *shape: int) -> amplify.PolyArray
- Args:
*shape (int):
- Returns:
amplify.PolyArray:
- sum(self, axis: Literal[None] | None = None) Poly ¶
- sum(self, axis: int | tuple[int, ...] | None) Poly | PolyArray
sum
- Overloading:
1. sum(self, axis: Optional[Literal[None]] = None) -> amplify.Poly
- Args:
axis (Literal[None] | None): Defaults to
None
.
- Returns:
amplify.Poly:
2. sum(self, axis: Optional[Union[int, tuple[int, …]]]) -> Union[amplify.Poly, amplify.PolyArray]
- Args:
axis (int | tuple[int, …] | None):
- Returns:
amplify.Poly | amplify.PolyArray:
- tonumpy(self) ndarray[Any, dtype[numpy.float64]] ¶
alias of
to_numpy()
- Return type:
- transpose(self, axes: tuple[int, ...] | None = None) PolyArray ¶
- transpose(self, *axes: int) PolyArray
transpose
- Overloading:
1. transpose(self, axes: Optional[tuple[int, …]] = None) -> amplify.PolyArray
- Args:
axes (tuple[int, …] | None): Defaults to
None
.
- Returns:
amplify.PolyArray:
2. transpose(self, *axes: int) -> amplify.PolyArray
- Args:
*axes (int):
- Returns:
amplify.PolyArray:
- __deprecated__ = 'IsingPolyArray is deprecated since amplify v1.0.0 and will no longer support in the near future.\nUse PolyArray instead. Please see the migration guide for details: https://amplify.fixstars.com/docs/amplify/v1/migration.html'¶
- __dict__ = mappingproxy({'__module__': 'amplify._backward', '__dict__': <attribute '__dict__' of 'IsingPolyArray' objects>, '__weakref__': <attribute '__weakref__' of 'IsingPolyArray' objects>, '__doc__': None, '__new__': <staticmethod(<function PolyArray.__new__>)>, '__init_subclass__': <function IsingPolyArray.__init_subclass__>, '__deprecated__': 'IsingPolyArray is deprecated since amplify v1.0.0 and will no longer support in the near future.\nUse PolyArray instead. Please see the migration guide for details: https://amplify.fixstars.com/docs/amplify/v1/migration.html', '__annotations__': {}})¶
- __weakref__¶
list of weak references to the object (if defined)