36int DetermineRank(
const std::vector<std::vector<double>> &m,
int rows,
int cols);
48bool BackSubstitution(
const std::vector<std::vector<double>> &m,
int rows,
int cols, std::vector<double> &solution);
68std::vector<int>
IdentifyPivots(
const std::vector<std::vector<double>> &m,
int rows,
int cols);
std::vector< int > IdentifyPivots(const std::vector< std::vector< double > > &m, int rows, int cols)
Identifies the pivot columns in the matrix.
void ShowGeneralSolution(const std::vector< std::vector< double > > &m, int rows, int cols, int rank)
Displays the general solution for systems with infinitely many solutions.
bool BackSubstitution(const std::vector< std::vector< double > > &m, int rows, int cols, std::vector< double > &solution)
Performs back-substitution to find the solution vector.
int GaussianElimination(std::vector< std::vector< double > > &m, int rows, int cols)
Performs Gaussian elimination on the augmented matrix with partial pivoting.
int DetermineRank(const std::vector< std::vector< double > > &m, int rows, int cols)
Determines the rank of the coefficient matrix A (excluding augmented column).