Values¶
- class Values¶
Mapping from variables to numeric values in a solution.
Methods
- class ItemsView¶
View of key-value pairs in
Values.- __bool__(self) bool¶
- 戻り値の型:
bool
- __init__(*args, **kwargs)¶
- __len__(self) int¶
- 戻り値の型:
int
- __repr__(self) str¶
- 戻り値の型:
str
- __str__(self) str¶
- 戻り値の型:
str
- class KeysView¶
View of keys in
Values.- __bool__(self) bool¶
- 戻り値の型:
bool
- __contains__(self, arg: Poly, /) bool¶
- __contains__(self, arg: object, /) bool
__contains__
Overload 1.
- Args:
arg (amplify.Poly)
- Returns:
bool:
Overload 2.
- Args:
arg (object)
- Returns:
bool:
- __init__(*args, **kwargs)¶
- __len__(self) int¶
- 戻り値の型:
int
- __repr__(self) str¶
- 戻り値の型:
str
- __str__(self) str¶
- 戻り値の型:
str
- class ValuesView¶
View of values in
Values.- __bool__(self) bool¶
- 戻り値の型:
bool
- __init__(*args, **kwargs)¶
- __iter__(self) ValuesView¶
- 戻り値の型:
- __len__(self) int¶
- 戻り値の型:
int
- __next__(self) float¶
- 戻り値の型:
float
- __repr__(self) str¶
- 戻り値の型:
str
- __str__(self) str¶
- 戻り値の型:
str
- __bool__(self) bool¶
- 戻り値の型:
bool
- __contains__(self, arg: Poly, /) bool¶
- __contains__(self, arg: object, /) bool
__contains__
Overload 1.
- Args:
arg (amplify.Poly)
- Returns:
bool:
Overload 2.
- Args:
arg (object)
- Returns:
bool:
- __getitem__(self, arg: Poly, /) float¶
Return the value of the variable.
- パラメータ:
arg (Poly) -- The variable to look up. It has to be a polynomial of one variable.
- 戻り値:
The value that the solution gives to the variable.
- 戻り値の型:
float
- 例外:
KeyError -- The key is not a single variable, it comes from another
VariableGenerator, or the solution gives it no value.
- __init__(*args, **kwargs)¶
- __len__(self) int¶
- 戻り値の型:
int
- __repr__(self) str¶
- 戻り値の型:
str
- __str__(self) str¶
- 戻り値の型:
str
- values(self) ValuesView¶
- 戻り値の型: