r"""Return the hypergraph incidence matrix :math:`\mathbf{H}` of the specified hyperedge group with ``torch.Tensor`` format. Args: ``group_name`` (``str``): The name of the specified hyperedge group.
(self, group_name: str)
| 749 | return self.cache["H"] |
| 750 | |
| 751 | def H_of_group(self, group_name: str) -> torch.Tensor: |
| 752 | r"""Return the hypergraph incidence matrix :math:`\mathbf{H}` of the specified hyperedge group with ``torch.Tensor`` format. |
| 753 | |
| 754 | Args: |
| 755 | ``group_name`` (``str``): The name of the specified hyperedge group. |
| 756 | """ |
| 757 | assert ( |
| 758 | group_name in self.group_names |
| 759 | ), f"The specified {group_name} is not in existing hyperedge groups." |
| 760 | if self.group_cache[group_name].get("H") is None: |
| 761 | self.group_cache[group_name]["H"] = self.H_v2e_of_group(group_name) |
| 762 | return self.group_cache[group_name]["H"] |
| 763 | |
| 764 | @property |
| 765 | def H_T(self) -> torch.Tensor: |
no test coverage detected