Write a TypeScript program to find the rank of a matrix
The rank of a matrix is the dimension of the vector space generated by its columns. The rank of a matrix is also equal to the dimension of the vector space generated by its rows. The rank of a matrix is also equal to the number of pivots in its reduced row echelon form.
Input :
1 2 3
4 5 6
7 8 9
Output :
2
How to contribute
- Save the solution in `program/FindTheRankOfAMatrix.ts` file
- Add `FindTheRankOfAMatrix.ts` file in `find-the-rank-of-a-matrix` folder
Description
Write a TypeScript program to find the rank of a matrix
The rank of a matrix is the dimension of the vector space generated by its columns. The rank of a matrix is also equal to the dimension of the vector space generated by its rows. The rank of a matrix is also equal to the number of pivots in its reduced row echelon form.
How to contribute
- Save the solution in `program/FindTheRankOfAMatrix.ts` file - Add `FindTheRankOfAMatrix.ts` file in `find-the-rank-of-a-matrix` folder