logdet_order#
- tangles.util.matrix_order.logdet_order(matrix: ndarray, feats: ndarray)#
Order function defined by \(|f| = log( det( M_A )) + log( det( M_B ))\) where \(f\) is the bipartition indicator vector of the partition \((A,B)\).
Parameters#
- matrixnp.ndarray
Square matrix of shape (
feats.shape[0]
,feats.shape[1]
).- featsnp.ndarray
Matrix containing partition indicator vectors as columns.
Returns#
- np.ndarray
1-dimensional np.ndarray of length
feats.shape[1]
containing the orders.