A matrix is a rectangular array of numbers or symbols arranged in rows and columns. There are different types of matrices like row matrix, column matrix, horizontal matrix, vertical matrix, square matrix, diagonal matrix, identity matrix, equal matrix, singular matrix, etc. The three basic matrix operations are addition, subtraction, and multiplication. The following section contains various C programs on matrix operations, matrix types, matrix diagonals, sparse matrix, invertible matrix, and adjacency matrix.
Each sample program on the matrix includes a program description, C code, and program output. All examples have been compiled and tested on Windows and Linux systems.
Here is the listing of C programming examples on Matrix Operations:
- C Programs on Matrix Operations
- C Programs on Matrix Types
- C Programs on Matrix Rows and Columns
- C Programs on Matrix Diagonals
- More Matrix Programs in C
1. C Programs on Matrix Operations
Program | Description |
---|---|
Matrix Multiplication in C | C Program to Perform Matrix Multiplication |
Matrix Multiplication using Recursion in C | C Program to Perform Matrix Multiplication using Recursion |
Multiplicability of Two Matrices in C | C Program to Check Multiplicability of Two Matrices |
Product of Two Matrices in C | C Program to Find Product of Two Matrices |
Sum and Difference of Matrices in C | C Program to Find Sum and Difference of Two Matrices |
Matrix Operations in C | C Program to Perform Addition, Subtraction and Trace of 2 Matrices |
Matrix Addition in C | Addition of Two Matrix in C |
Matrix Subtraction in C | C Program to Subtract Two Matrices |
Find Transpose of a Matrix in C | C Program to Find Transpose of a Matrix |
Determinant of a Matrix in C | C Program to Find Determinant of a Matrix |
Matrix Linear Equations in C | C Program to Represent Linear Equations in Matrix Form |
Matrix Basis and Dimension in C | C Program to Find Basis and Dimension of a Matrix |
advertisement
advertisement
2. C Programs on Matrix Types
Program | Description |
---|---|
Check if Two Matrices are Equal in C | C Program to Check if Two Matrices are Equal |
Inverse Matrix in C | C Program to Find Inverse of a Matrix |
Invertible Matrix in C | C Program to Check if a Matrix is Invertible |
Sparse Matrix Program in C | C Program to Check if a Matrix is a Sparse Matrix |
Sparse Matrix Representation in C | C Program to Implement Sparse Matrix |
Adjacency Matrix in C | C Program to Implement Adjacency Matrix |
Check Matrix is an Identity Matrix in C | C Program to Check if a Matrix is an Identity Matrix |
Symmetric Matrix in C | C Program to Check Symmetric Matrix |
3. C Programs on Matrix Rows and Columns
Program | Description |
---|---|
Interchange Rows and Columns of a Matrix in C | C Program to Interchange Any Two Rows and Columns in the Matrix |
Sort Matrix in C | C Program to Sort Rows and Columns of the Matrix |
Row Sum and Column Sum of a Matrix in C | C Program to Find the Sum of Each Row and Column of a MxN Matrix |
4. C Programs on Matrix Diagonals
Program | Description |
---|---|
Sum of Diagonal Elements of a Matrix in C | C Program to Find Sum of Diagonal Elements of a Matrix |
Find Trace & Normal of a Matrix in C | C Program to Find Normal and Trace of a Matrix |
Interchanging Matrix Rows in C | C Program to Interchange Diagonals of Matrix |
Lower Triangular Matrix in C | C Program to Display Lower Triangular Matrix |
Upper Triangular Matrix in C | C Program to Display Upper Triangular Matrix |
5. More Matrix Programs in C
Program | Description |
---|---|
Find Frequency of Odd & Even Numbers in Matrix in C | C Program to Find the Frequency of Odd and Even Numbers in Matrix |
Message Encoding using Matrix in C | C Program to Perform Message Encoding Using Matrix Multiplication |
LU Decomposition in C | C Program to Perform LU Decomposition of Any Matrix |