graphlow.core.MeshTopology.cell_face_incidence#

MeshTopology.cell_face_incidence(layout: Literal['csr', 'coo'] = 'coo') T#

Materialize cell-face incidence (CF). Its value is 1 for the owner face and -1 for the neighbor face.

Parameters:
layoutLiteral[“csr”, “coo”]

Layout of the sparse matrix. Default is “coo”.

Returns:
T

Backend tensor of shape (n_cells, n_faces). dtype is float with the precision set by the backend.