I have to find the transposed matrix using Boolean functions, without altering the physical location of the elements, the exercise is this: Construct a procedure:
void trasponer(void);
as a method of the class matrix_t, which, once invoked, allows the user to operate with the original matrix in a transposed format, regardless of its dimension.
It is important to note that the physical location of the data should not be altered at all. Only a Boolean variable named transpose_ should be included as an attribute, alter the methods:
get_m(),
get_n(),
pos(matrix_inx_t i, matrix_inx_t j),
and alter all those methods in which an element is accessed and reference is made to the dimension of the matrix. Include the following lines in a main program:
matrix_t A;
cout << endl;
A.read(cin);
cout << "--- MATRIZ ORIGINAL ---" << endl;
A.write();
cout << "--- MATRIZ ORIGINAL TRASPUESTA---" << endl;
A.trasponer();
A.write();
If you could give me an idea please