pycauset.causal_matrix
Factory function for creating a pycauset.TriangularBitMatrix suitable for representing a causal relation.
Parameters
- n (int): The dimension of the causal set (
n×n). - populate (bool): If
True(default), fills with random bits (p=0.5). IfFalse, returns an all-zeros matrix. - kwargs: Passed through to the backend constructor.
Returns
- TriangularBitMatrix: A new instance of pycauset.TriangularBitMatrix.