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.
- __weakref__¶
list of weak references to the object (if defined)