Diagnosis Value Interface (i_diagnosis_value)

class pypint.solvers.diagnosis.i_diagnosis_value.IDiagnosisValue(value)[source]

Bases: builtins.object

Storage and handler of diagnosis values of iterative time solvers.

Comparability

It can be equality-compared (i.e. operators == and != are implemented). The other comparison operators such as <, <=, > and >= are not implemented as these do not make any sense for this type of container.

Two instances are the same, if they have the same numeric_type and their value are the same with respect to numpy.array_equal().

Hashable
It is not hashable due to its wrapping around numpy.ndarray.

Todo

Extend this interface to emulate a numeric type. This includes __add__(), __sub__(), etc.

__init__(value)[source]
Raises:ValueError – If value is not a numpy.ndarray.
__weakref__

list of weak references to the object (if defined)

numeric_type[source]

Read-only accessor for the numerical type of the value.

The type is derived from the given values.

Returns:numeric_type
Return type:numpy.dtype
value[source]

Read-only accessor for the value.

Returns:value
Return type:numpy.ndarray