Scythe-1.0.3
|
template<typename T_type = double, matrix_order ORDER = Col, matrix_style STYLE = Concrete>
File constructor. Constructs a matrix from the contents of a file. The standard input file format is a simple rectangular text file with one matrix row per line and spaces delimiting values in a row. Optionally, one can also use Scythe's old file format which is a space-delimited, row-major ordered, list of values with row and column lengths in the first two slots.
Example: #include <scythestat/matrix.h> using namespace scythe; int main () { // Construct a matrix from the file amatrix.dat Matrix<> M("amatrix.dat"); return 0; } |