public class SparseMatrixTransposer extends Object
Constructor and Description |
---|
SparseMatrixTransposer(SparseMatrix m,
File f) |
SparseMatrixTransposer(SparseMatrix m,
File f,
int bufferMb) |
Modifier and Type | Method and Description |
---|---|
protected Map<Integer,org.wikibrain.matrix.SparseMatrixTransposer.RowAccumulator> |
accumulateBatch() |
static void |
main(String[] args) |
void |
transpose() |
protected void |
writeBatch(Collection<org.wikibrain.matrix.SparseMatrixTransposer.RowAccumulator> batch) |
public SparseMatrixTransposer(SparseMatrix m, File f) throws IOException
IOException
public SparseMatrixTransposer(SparseMatrix m, File f, int bufferMb) throws IOException
IOException
public void transpose() throws IOException
IOException
protected Map<Integer,org.wikibrain.matrix.SparseMatrixTransposer.RowAccumulator> accumulateBatch()
protected void writeBatch(Collection<org.wikibrain.matrix.SparseMatrixTransposer.RowAccumulator> batch) throws IOException
IOException
public static void main(String[] args) throws IOException
IOException
Copyright © 2015. All rights reserved.