public class MatrixHeapMerger extends Object implements Merger
DenseSparseMatrix
using a PriorityQueue
as a heap on the MatrixIterator
.
Relies upon MatrixIterator.compareTo(MatrixIterator)
.
Constructor and Description |
---|
MatrixHeapMerger() |
Modifier and Type | Method and Description |
---|---|
DenseSparseMatrix |
merge(DenseSparseMatrix[] inputs)
Merges an array of DenseSparseMatrix into a single DenseSparseMatrix.
|
SparseVector |
merge(SparseVector[] inputs)
Merges an array of SparseVector into a single SparseVector.
|
public DenseSparseMatrix merge(DenseSparseMatrix[] inputs)
Merger
public SparseVector merge(SparseVector[] inputs)
Merger
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.