MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / __eq__

Method __eq__

python/dolfinx/fem/function.py:812–814  ·  view source on GitHub ↗

Comparison for equality.

(self, other)

Source from the content-addressed store, hash-verified

810 return self._cpp_object.contains(V._cpp_object) # type: ignore
811
812 def __eq__(self, other):
813 """Comparison for equality."""
814 return super().__eq__(other) and self._cpp_object == other._cpp_object
815
816 def __ne__(self, other):
817 """Comparison for inequality."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected