C Program To Check whether Matrix is Skew Symmetric or not
A Skew Symmetric Matrix or Anti-Symmetric Matrix is a square matrix whose transpose is negative to that of the original matrix. If the entry in the ith row and jth column of a matrix is a[i][j], i.e. if A = (a[i][j]) then the skew symmetric condition is -A = -a[j][i].
Input : matrix: 0 5 -4 -5 0 1 4 -1 0 Output: Transpose matrix: 0 -5 4 5 0 -1 -4 1 0 Skew Symmetric matrix
- Find the transpose of the input matrix.
- If the input matrix is equal to the negative of its transpose matrix, then the matrix is Skew Symmetrical.
Below is the implementation of the above approach:
Transpose matrix: 0 -5 4 5 0 -1 -4 1 0 Skew Symmetric Matrix
Time complexity: O(ROW x COL).
Auxiliary Space: O(ROW x COL).
References : Wikipedia
This article is contributed by Aarti_Rathi and Akash Gupta. If you like GeeksforGeeks and would like to contribute, you can also write an article using write.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or if you want to share more information about the topic discussed above.