cupy.linalg.slogdet¶
-
cupy.linalg.slogdet(a)[source]¶ Returns sign and logarithm of the determinat of an array.
It calculates the natural logarithm of the deteminant of a given value.
Parameters: a (cupy.ndarray) – The input matrix with dimension (..., N, N).Returns: It returns a tuple (sign, logdet).signrepresents each sign of the deteminant as a real number0,1or-1. ‘logdet’ represents the natural logarithm of the absolute of the deteminant. If the deteninant is zero,signwill be0andlogdetwill be-inf. The shapes of bothsignandlogdetare equal toa.shape[:-2].Return type: tuple of ndarraySee also