def METHOD_NAME(self) -> NDArrayFloat:
    """
    Compute the Gram matrix.
    Subclasses may override this method for improving computation
    of the Gram matrix.
    """
    from ...misc import inner_product_matrix
    return inner_product_matrix(self.fdata)