Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void matrix::trans()
- {
- vector<float> temporary;
- int matrixSize = dimx * dimy;
- for(int i = 0; i < dimx; i++)
- {
- vector<float> row = this->stringToFloat(this->matrixCol(i), '\n');
- for (int j = 0; j < dimy; j++)
- {
- temporary.push_back(row[j]);
- }
- }
- int temporary2 = this->dimx;
- this->dimx = this->dimy;
- this->dimy = temporary2;
- this->matrixVector = temporary;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement