Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. void matrix::trans()
  2. {
  3. vector<float> temporary;
  4. int matrixSize = dimx * dimy;
  5. for(int i = 0; i < dimx; i++)
  6. {
  7. vector<float> row = this->stringToFloat(this->matrixCol(i), '\n');
  8. for (int j = 0; j < dimy; j++)
  9. {
  10. temporary.push_back(row[j]);
  11. }
  12. }
  13. int temporary2 = this->dimx;
  14. this->dimx = this->dimy;
  15. this->dimy = temporary2;
  16. this->matrixVector = temporary;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement