def det(a):
 shape = (1, a.shape[0], a.shape[1])
 batched_a = reshape.Reshape(shape)(a)
 batched_det = BatchDet()(batched_a)
 return reshape.Reshape(())(batched_det)

def det ( a ) : shape = ( 1 , a . shape [ 0 ] , a . shape [ 1 ] ) batched_a = reshape . Reshape ( shape ) ( a ) batched_det = BatchDet ( ) ( batched_a ) return reshape . Reshape ( ( ) ) ( batched_det )
compute the determinant of a matrix the determinant of a square matrix is a value derived arithmetically from the coefficients of the matrix .