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

Method contains

python/dolfinx/fem/function.py:800–810  ·  view source on GitHub ↗

Check if a space is contained in, or is the same as, this space. Args: V: The space to check to for inclusion. Returns: `` True`` if ``V`` is contained in, or is the same as, this space.

(self, V)

Source from the content-addressed store, hash-verified

798 return self._cpp_object.component() # type: ignore
799
800 def contains(self, V) -> bool:
801 """Check if a space is contained in, or is the same as, this space.
802
803 Args:
804 V: The space to check to for inclusion.
805
806 Returns:
807 `` True`` if ``V`` is contained in, or is the same as, this
808 space.
809 """
810 return self._cpp_object.contains(V._cpp_object) # type: ignore
811
812 def __eq__(self, other):
813 """Comparison for equality."""

Callers 3

test_inclusionFunction · 0.45
_Function · 0.45
_bc_spaceFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_inclusionFunction · 0.36