public class MatrixIOTest extends Object
Modifier and Type | Field and Description |
---|---|
static double[][] |
testMatrix |
Constructor and Description |
---|
MatrixIOTest() |
public static File getSVDLIBCDenseBinaryFile() throws Exception
Exception
public static File getSVDLIBCDenseTextFile() throws Exception
Exception
public static File getSparseBinarySVDLIBCFile() throws Exception
Exception
public static void testReadMatrix(Matrix resultMatrix)
Matrix
contains the same data values as in
testMatrix
.public static void testReadMatrixTransposed(Matrix resultMatrix)
Matrix
contains the same data values as in
testMatrix
.public static void testReadDoubleArray(double[][] resultMatrix)
testMatrix
.public static void testMatrixIterator(Iterator<MatrixEntry> matrixIter)
Iterator
over MatrixEntry
s matches the expected values in testMatrixIterator
.public void readTransposedMatrixFromMatlabSparse() throws Exception
Matrix
s from matrix files.Exception
public void readTransposedMatrixFromSVDLIBCSparseText() throws Exception
Exception
public void readTransposedMatrixFromSVDLIBCSparseBinary() throws Exception
Exception
public void readTransposedMatrixFromSVDLIBCDenseText() throws Exception
Exception
public void readTransposedMatrixFromSVDLIBCDenseBinary() throws Exception
Exception
public void readTransposedMatrixFromClutoSparse() throws Exception
Exception
public void readTransposedMatrixFromClutoDense() throws Exception
Exception
public void readTransposedMatrixFromDenseText() throws Exception
Exception
public void readMatrixFromMatlabSparse() throws Exception
Matrix
from matrix files.Exception
public void readMatrixFromSVDLIBCSparseText() throws Exception
Exception
public void readMatrixFromSVDLIBCSparseBinary() throws Exception
Exception
public void readMatrixFromSVDLIBCDenseText() throws Exception
Exception
public void readMatrixFromSVDLIBCDenseBinary() throws Exception
Exception
public void readMatrixFromClutoSparse() throws Exception
Exception
public void writeDenseTextMatrixFile() throws Exception
Matrix
objects to matrix files. Note that
these tests assume that reading works properly. This isn't the best
testing practice, but it's makes writing the tests significantly less
error prone.Exception
public void writeClutoSparseMatrixFile() throws Exception
Exception
public void writeClutoDenseMatrixFile() throws Exception
Exception
public void writeSvdlibcDenseTextMatrixFile() throws Exception
Exception
public void writeSvdlibcDenseBinaryMatrixFile() throws Exception
Exception
public void writeSvdlibcSparseBinaryMatrixFile() throws Exception
Exception
public void writeSvdlibcSparseTextMatrixFile() throws Exception
Exception
public void writeMatlabSparseMatrixFile() throws Exception
Exception
public void readMatrixArrayFromMatlabSparse() throws Exception
Exception
public void readMatrixArrayFromSVDLIBCSparseText() throws Exception
Exception
public void readMatrixArrayFromSVDLIBCSparseBinary() throws Exception
Exception
public void readMatrixArrayFromSVDLIBCDenseText() throws Exception
Exception
public void readMatrixArrayFromSVDLIBCDenseBinary() throws Exception
Exception
public void readMatrixArrayFromClutoSparse() throws Exception
Exception
public void readMatrixArrayFromClutoDense() throws Exception
Exception
public void readMatrixArrayFromDenseText() throws Exception
Exception
public void readDenseTextIterator() throws Exception
Exception
public void readSVDLIBCDenseBinaryIterator() throws Exception
Exception
public void readSVDLIBCDenseTextIterator() throws Exception
Exception
public void readSVDLIBCSparseBinaryIterator() throws Exception
Exception
Copyright © 2012. All Rights Reserved.