signOfDeterminant (Matrix)
Returns sign of a square matrix' determinant.
Arguments
Square
matrix
(see Matrix).
Return values
Determinant
sign
as an integer number: 1 if positive, -1 if negative, 0 if zero.
Complexity
O(size^3)
Example
Output:
-1
1