Java. Writing a matrix in a file using column information. ( matrix transposition )
Posted
by Dmitry
on Stack Overflow
See other posts from Stack Overflow
or by Dmitry
Published on 2010-03-18T18:28:21Z
Indexed on
2010/03/18
23:01 UTC
Read the original article
Hit count: 181
java
|matrix-transposition
Hello, everybody!
I have a file in which a matrix is stored. This file has a RandomAccessFile type. This matrix is stored by columns. I mean that in an i-th row of this matrix an i-th column (of a real matrix) is stored. There is an example: i-th row: 1 2 3 4 (in the file). That means that the real matrix has an i-th column: (1 2 3 4)(is transposed).
I need to save this matrix in a natural way (by rows) in a new file, which I will then open with FileReader and display with TextArea.
Do you know, how to do that? If so, please help =)
© Stack Overflow or respective owner