public class MatrixFile extends Object implements Iterable<MatrixEntry>
Constructor and Description |
---|
MatrixFile(File matrixFile,
MatrixIO.Format format)
Constucts a
MatrixFile from the provided File and format. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
File |
getFile()
Returns file containing the matrix data
|
MatrixIO.Format |
getFormat()
Returns the format of the matrix
|
int |
hashCode() |
Iterator<MatrixEntry> |
iterator()
Returns an iterator over all the entries in the matrix.
|
Matrix |
load()
Loads the matrix from disk and returns a copy of its data.
|
String |
toString() |
public MatrixFile(File matrixFile, MatrixIO.Format format)
MatrixFile
from the provided File
and format.public File getFile()
public MatrixIO.Format getFormat()
public Iterator<MatrixEntry> iterator()
iterator
in interface Iterable<MatrixEntry>
public Matrix load()
Matrix
is created each time this is called.Copyright © 2012. All Rights Reserved.