fill_diagonal# hypercoil.functional.matrix.fill_diagonal(A: Tensor, fill: float = 0, offset: int = 0) → Tensor[source]# Fill a selected diagonal in a block of square matrices. Dimension is inferred from the final axes.