I gotta implement gauss's elimination method using vectors starting off with this example code I've already started working on. My main question is where would i put the actually loop to do the calculations?
where would i put the actually [sic] loop to do the calculations?
In a separate member function std::vector<double> gauss::solveit( const std::vector<double> &RHS );
AFTER you have checked that the rest of the code does anything sensible. Like not confusing ints and doubles, and deciding what precisely you are going to do with MT.
If you have the line
using namespace std;
at the top of your code you don't need to prefix standard library items with
std::
as well.
Alternatively, you could put lines like using std::vector;
at the top of your code. Otherwise it is going to get very hard on the eyes doing any sort of mathematical programming with multi-dimensional arrays.
It does not matter here, if this is the whole scope of the problem, but your design is not stable for going forward very far.
I suggest you instead make a matrix class, think about that that might be, and have elimination as a method in that. That is, gauss should not be the class, its a method. If you decide to do anything more besides elimination, this will start to get weird.