Files
SimplexTASK/tools/elimination.h
T
emil 153bcfd017 Fix the incorrect output error.
Implement epsilon (but doesn't work correctly for now).
Start making the correct implementation of I/O.
2024-10-03 04:49:09 +03:00

31 lines
696 B
C

#ifndef ELIMINATION_H
#define ELIMINATION_H
#include "matrix.h"
struct FracturedMatrix {
Matrix A;
Vector C;
Vector b;
int pivot_column_index;
int pivot_row_index;
FracturedMatrix() = default;
FracturedMatrix(const FracturedMatrix& other);
FracturedMatrix(Matrix A, Vector C, Vector b, int pivot_column_index, int pivot_row_index);
FracturedMatrix& operator=(const FracturedMatrix& other);
};
struct DestroyMatrix {
Matrix A;
Vector C;
Vector b;
};
DestroyMatrix disassembleGeneralMatrix(Matrix& generalMatrix);
void elimination(Matrix&, int pivot_row_index, int pivot_column_index);
Matrix createGeneralMatrix(Matrix& A, Vector& C, Vector& b);
#endif //ELIMINATION_H