JAVA. Writing a matrix in a file using column information.
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
18:31 UTC
Read the original article
Hit count: 214
java
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)(transpose).
I need to save this matrix in natural way (by rows) in a new file, which I will then open with FileReader and display with TestArea.
DO you know, how to do that? If so, please help =)
© Stack Overflow or respective owner