jaxvacua.lcs.coo_to_intnums

Contents

jaxvacua.lcs.coo_to_intnums#

coo_to_intnums(i, j, k, v, h11)#

Converts intersection numbers from COO format to a dense 3D array format.

Parameters:
  • i (array-like) – Array of first indices of the intersection numbers.

  • j (array-like) – Array of second indices of the intersection numbers.

  • k (array-like) – Array of third indices of the intersection numbers.

  • v (array-like) – Array of values of the intersection numbers corresponding to the indices (i, j, k).

  • h11 (int) – Hodge number h^{1,1} of the mirror CY, which determines the size of the output array.

Returns:

np.ndarray – A 3D array of shape (h11, h11, h11) containing the intersection numbers, where the entry at (i, j, k) is given by the corresponding value in v for the indices (i, j, k) in COO format.

Return type:

ndarray