Hi @newbieAuggie2019,
Thank you so much for your super detailed response!
I have tried what you had suggested, however, due to the zero elements in the matrix, the overall matrix is still aligned incorrectly.
I am importing numpy to generate the matrices.
In my source code, I first create a 15x15 zero matrix with the following line:
Matrix = np.zeros([15, 15], dtype = "complex64")
Followed by that, I run iterative calculations on some data and the elements which contain a value would be updated in the Matrix. These elements include zero and non-zero values.
I have considered reducing the number of decimal places of the complex numbers so each row vector would be shorter.
However, I am running into errors while trying the above.
Alternatively, I am trying to export the data onto an excel file with XlsxWriter, but I have ran into the following error: ComplexWarning: Casting complex values to real discards the imaginary part Please advise on how to address this error, as I really need to export the complex numbers in an excel file
Appreciate your help very much, I am very new to Python and software programming in general, thanks a lot for the detailed explanations once again.
Thank you so much for your super detailed response!
I have tried what you had suggested, however, due to the zero elements in the matrix, the overall matrix is still aligned incorrectly.
I am importing numpy to generate the matrices.
In my source code, I first create a 15x15 zero matrix with the following line:
Matrix = np.zeros([15, 15], dtype = "complex64")
Followed by that, I run iterative calculations on some data and the elements which contain a value would be updated in the Matrix. These elements include zero and non-zero values.
I have considered reducing the number of decimal places of the complex numbers so each row vector would be shorter.
However, I am running into errors while trying the above.
Alternatively, I am trying to export the data onto an excel file with XlsxWriter, but I have ran into the following error: ComplexWarning: Casting complex values to real discards the imaginary part Please advise on how to address this error, as I really need to export the complex numbers in an excel file
Appreciate your help very much, I am very new to Python and software programming in general, thanks a lot for the detailed explanations once again.