import matrix from file
Posted: Thu Aug 28, 2014 11:44 pm
Dear Ted,
The traditional way to import matrix data from file is to 1. define a matrix and then 2. scanf the file by specifying the number of rows and cols, e.g.
Is there a way in hoc, which can automatically read in the nrow/ncol information from the file without specifying all the times ?
The traditional way to import matrix data from file is to 1. define a matrix and then 2. scanf the file by specifying the number of rows and cols, e.g.
Code: Select all
mat = new Matrix(nrow, ncol)
mat.scanf(fileobj, nrow, nrow)