PolyArray#

class PolyArray#

Methods

__init__

__init__

copy

copy

decode

decode

diagonal

diagonal

evaluate

evaluate

fill

fill

flatten

flatten

nonzero

nonzero

ravel

ravel

repeat

repeat

reshape

reshape

roll

roll

substitute

substitute

sum

sum

swapaxes

swapaxes

take

take

to_list

to_list

to_numpy

to_numpy

tolist

alias of to_list()

tonumpy

alias of to_numpy()

transpose

transpose

view

view

Attributes

T

T property

flat

flat property

ndim

ndim property

shape

shape property

size

size property

class Iterator#
__init__(*args, **kwargs)#
__iter__(self) Iterator#

__iter__

戻り値の型:

Iterator

__next__(self) PolyArray | Poly#

__next__

戻り値の型:

PolyArray | Poly

__add__(self, arg: PolyArray | Poly | float | int | list | ndarray, /) PolyArray#

__add__

パラメータ:

arg (PolyArray | Poly | float | int | list | ndarray) --

戻り値の型:

PolyArray

__and__(
self,
arg: PolyArray | Poly | bool | list | ndarray[Any, dtype[bool_]],
/,
) PolyArray#

__and__

パラメータ:

arg (PolyArray | Poly | bool | list | ndarray) --

戻り値の型:

PolyArray

__bool__(self) bool#

__bool__

戻り値の型:

bool

__copy__(self) PolyArray#

__copy__

戻り値の型:

PolyArray

__deepcopy__(self, arg: dict, /) PolyArray#

__deepcopy__

パラメータ:

arg (dict) --

戻り値の型:

PolyArray

__eq__(
self,
arg: PolyArray | Poly | float | int | list | ndarray,
/,
) ndarray[Any, dtype[bool_]]#

__eq__

パラメータ:

arg (PolyArray | Poly | float | int | list | ndarray) --

戻り値の型:

ndarray

__float__(self) float#

__float__

戻り値の型:

float

__getitem__(self, arg: tuple | slice | EllipsisType | int | None) PolyArray | Poly#

__getitem__

パラメータ:

arg (tuple | slice | EllipsisType | int | None) --

戻り値の型:

PolyArray | Poly

__iadd__(self, arg: PolyArray | Poly | float | int | list | ndarray, /) PolyArray#

__iadd__

パラメータ:

arg (PolyArray | Poly | float | int | list | ndarray) --

戻り値の型:

PolyArray

__iand__(
self,
arg: PolyArray | Poly | bool | list | ndarray[Any, dtype[bool_]],
/,
) PolyArray#

__iand__

パラメータ:

arg (PolyArray | Poly | bool | list | ndarray) --

戻り値の型:

PolyArray

__imul__(self, arg: PolyArray | Poly | float | int | list | ndarray, /) PolyArray#

__imul__

パラメータ:

arg (PolyArray | Poly | float | int | list | ndarray) --

戻り値の型:

PolyArray

__index__(self) int#

__index__

戻り値の型:

int

__init__(self, object: ndarray | list | Poly) None#

__init__

パラメータ:

object (ndarray | list | Poly) --

__int__(self) int#

__int__

戻り値の型:

int

__invert__(self) PolyArray#

__invert__

戻り値の型:

PolyArray

__ior__(
self,
arg: PolyArray | Poly | bool | list | ndarray[Any, dtype[bool_]],
/,
) PolyArray#

__ior__

パラメータ:

arg (PolyArray | Poly | bool | list | ndarray) --

戻り値の型:

PolyArray

__ipow__(self, arg: int, /) PolyArray#

__ipow__

パラメータ:

arg (int) --

戻り値の型:

PolyArray

__isub__(self, arg: PolyArray | Poly | float | int | list | ndarray, /) PolyArray#

__isub__

パラメータ:

arg (PolyArray | Poly | float | int | list | ndarray) --

戻り値の型:

PolyArray

__iter__(self) Iterator#

__iter__

戻り値の型:

Iterator

__itruediv__(self, arg: float | int | list | ndarray, /) PolyArray#

__itruediv__

パラメータ:

arg (float | int | list | ndarray) --

戻り値の型:

PolyArray

__ixor__(
self,
arg: PolyArray | Poly | bool | list | ndarray[Any, dtype[bool_]],
/,
) PolyArray#

__ixor__

パラメータ:

arg (PolyArray | Poly | bool | list | ndarray) --

戻り値の型:

PolyArray

__len__(self) int#

__len__

戻り値の型:

int

__matmul__(self, arg: PolyArray | ndarray, /) Poly | PolyArray#

__matmul__

パラメータ:

arg (PolyArray | ndarray) --

戻り値の型:

Poly | PolyArray

__mul__(self, arg: PolyArray | Poly | float | int | list | ndarray, /) PolyArray#

__mul__

パラメータ:

arg (PolyArray | Poly | float | int | list | ndarray) --

戻り値の型:

PolyArray

__ne__(
self,
arg: PolyArray | Poly | float | int | list | ndarray,
/,
) ndarray[Any, dtype[bool_]]#

__ne__

パラメータ:

arg (PolyArray | Poly | float | int | list | ndarray) --

戻り値の型:

ndarray

__neg__(self) PolyArray#

__neg__

戻り値の型:

PolyArray

__or__(
self,
arg: PolyArray | Poly | bool | list | ndarray[Any, dtype[bool_]],
/,
) PolyArray#

__or__

パラメータ:

arg (PolyArray | Poly | bool | list | ndarray) --

戻り値の型:

PolyArray

__pos__(self) PolyArray#

__pos__

戻り値の型:

PolyArray

__pow__(self, arg: int, /) PolyArray#

__pow__

パラメータ:

arg (int) --

戻り値の型:

PolyArray

__radd__(self, arg: Poly | float | int | list | ndarray, /) PolyArray#

__radd__

パラメータ:

arg (Poly | float | int | list | ndarray) --

戻り値の型:

PolyArray

__rand__(self, arg: Poly | bool | list | ndarray[Any, dtype[bool_]], /) PolyArray#

__rand__

パラメータ:

arg (Poly | bool | list | ndarray) --

戻り値の型:

PolyArray

__repr__(self) str#

__repr__

戻り値の型:

str

__rmatmul__(self, arg: PolyArray | ndarray, /) Poly | PolyArray#

__rmatmul__

パラメータ:

arg (PolyArray | ndarray) --

戻り値の型:

Poly | PolyArray

__rmul__(self, arg: Poly | float | int | list | ndarray, /) PolyArray#

__rmul__

パラメータ:

arg (Poly | float | int | list | ndarray) --

戻り値の型:

PolyArray

__ror__(self, arg: Poly | bool | list | ndarray[Any, dtype[bool_]], /) PolyArray#

__ror__

パラメータ:

arg (Poly | bool | list | ndarray) --

戻り値の型:

PolyArray

__rsub__(self, arg: Poly | float | int | list | ndarray, /) PolyArray#

__rsub__

パラメータ:

arg (Poly | float | int | list | ndarray) --

戻り値の型:

PolyArray

__rxor__(self, arg: Poly | bool | list | ndarray[Any, dtype[bool_]], /) PolyArray#

__rxor__

パラメータ:

arg (Poly | bool | list | ndarray) --

戻り値の型:

PolyArray

__setitem__(
self,
arg: tuple | slice | EllipsisType | int | None,
value: Poly | float | int | list | ndarray | PolyArray,
) None#

__setitem__

パラメータ:
__str__(self) str#

__str__

戻り値の型:

str

__sub__(self, arg: PolyArray | Poly | float | int | list | ndarray, /) PolyArray#

__sub__

パラメータ:

arg (PolyArray | Poly | float | int | list | ndarray) --

戻り値の型:

PolyArray

__truediv__(self, arg: float | int | list | ndarray, /) PolyArray#

__truediv__

パラメータ:

arg (float | int | list | ndarray) --

戻り値の型:

PolyArray

__xor__(
self,
arg: PolyArray | Poly | bool | list | ndarray[Any, dtype[bool_]],
/,
) PolyArray#

__xor__

パラメータ:

arg (PolyArray | Poly | bool | list | ndarray) --

戻り値の型:

PolyArray

copy(self) PolyArray#

copy

戻り値の型:

PolyArray

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:

diagonal(self, offset: int = 0, axis1: int = 0, axis2: int = 1) PolyArray#

diagonal

パラメータ:
  • offset (int) -- Defaults to 0.

  • axis1 (int) -- Defaults to 0.

  • axis2 (int) -- Defaults to 1.

戻り値の型:

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:

fill(self, value: Poly | float | int) None#

fill

パラメータ:

value (Poly | float | int) --

flatten(self) PolyArray#

flatten

戻り値の型:

PolyArray

nonzero(self) tuple[ndarray[Any, dtype[numpy.uint64]], ...]#

nonzero

戻り値の型:

tuple[ndarray[Any, dtype[numpy.uint64]], ...]

ravel(self) PolyArray#

ravel

戻り値の型:

PolyArray

repeat(self, repeats: int | list[int], axis: int | None = None) PolyArray#

repeat

パラメータ:
  • repeats (int | list[int]) --

  • axis (int | None) -- Defaults to None.

戻り値の型:

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:

roll(self, shift: int, axis: int | None = None) PolyArray#

roll

パラメータ:
  • shift (int) --

  • axis (int | None) -- Defaults to None.

戻り値の型:

PolyArray

substitute(self, mapping: dict[Poly, Poly | float | int]) PolyArray#

substitute

パラメータ:

mapping (dict[Poly, Union[Poly, float, int]]) --

戻り値の型:

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:

swapaxes(self, axis1: int, axis2: int) PolyArray#

swapaxes

パラメータ:
  • axis1 (int) --

  • axis2 (int) --

戻り値の型:

PolyArray

take(self, indices: int | list[int], axis: int | None = None) PolyArray | Poly#

take

パラメータ:
  • indices (int | list[int]) --

  • axis (int | None) -- Defaults to None.

戻り値の型:

PolyArray | Poly

to_list(self) Poly | list[Poly]#

to_list

戻り値の型:

Poly | list[Poly]

to_numpy(self) ndarray[Any, dtype[numpy.float64]]#

to_numpy

戻り値の型:

ndarray

tolist(self) Poly | list[Poly]#

alias of to_list()

戻り値の型:

Poly | list[Poly]

tonumpy(self) ndarray[Any, dtype[numpy.float64]]#

alias of to_numpy()

戻り値の型:

ndarray

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:

view(self) PolyArray#

view

戻り値の型:

PolyArray

property T#

T property

戻り値の型:

PolyArray

property flat#

flat property

戻り値の型:

PolyArray

property ndim#

ndim property

戻り値の型:

int

property shape#

shape property

戻り値の型:

tuple[int, ...]

property size#

size property

戻り値の型:

int