Is it possible to use the implemented reshape function to reshape a matrix to a vector? I have a matrix A(i_1, ...i_d, j_1...j_d) in TT format and I want to reshape it to a vector with the following structure:
A = A_1(i_1,j_1) A_2(i_2,j_2) ... -> B_1(i_1) B_1(i_2)...B_d(i_d) B_{d+1}(j_1) ...B_{2d}(j_d)
The reshape function of a matrix seems to work only with a pair of indices, and I cannot find an example of tensor reshaping.
Thanks.
Is it possible to use the implemented reshape function to reshape a matrix to a vector? I have a matrix A(i_1, ...i_d, j_1...j_d) in TT format and I want to reshape it to a vector with the following structure:
A = A_1(i_1,j_1) A_2(i_2,j_2) ... -> B_1(i_1) B_1(i_2)...B_d(i_d) B_{d+1}(j_1) ...B_{2d}(j_d)
The reshape function of a matrix seems to work only with a pair of indices, and I cannot find an example of tensor reshaping.
Thanks.