public class MatrixFactory extends Object
Constructor and Description |
---|
MatrixFactory() |
Modifier and Type | Method and Description |
---|---|
static MatrixFactory |
getInstance()
Deprecated.
|
Matrix |
getMatrix(String filename)
Retrieve the
Matrix associated with the matrix that was
stored in a file. |
Matrix |
getMatrix(String filename,
int numOfRows,
int numOfColumns,
int entriesType,
boolean rowMajorFormat)
Retrieve/create a matrix based on the specified arguments.
|
@Deprecated public static MatrixFactory getInstance()
public Matrix getMatrix(String filename, int numOfRows, int numOfColumns, int entriesType, boolean rowMajorFormat) throws IOException
filename
- The file associated with the matrix.numOfRows
- The number of rows within the matrixnumOfColumns
- The number of columns for this matrixentriesType
- The DATA type for the entries. See the Matrix
class in this package for more details.rowMajorFormat
- Indicates whether the data is stored (needs to be stored) in
ROW MAJOR format.Matrix
instance.IOException
- If there are problems reading/writing from the file system.public Matrix getMatrix(String filename) throws IOException
Matrix
associated with the matrix that was
stored in a file.filename
- The file where the matrix was storedMatrix
instanceIOException
- If there are problems reading/writing from the file system.Copyright © 2015. All rights reserved.