org.apache.sysds.runtime.compress.readers

## Class ReaderColumnSelectionSparseTransposed

- java.lang.Object
- - org.apache.sysds.runtime.compress.readers.ReaderColumnSelection
  - - org.apache.sysds.runtime.compress.readers.ReaderColumnSelectionSparseTransposed

-     public class ReaderColumnSelectionSparseTransposed
      extends ReaderColumnSelection

  Used to extract the values at certain indexes from each row in a sparse matrix Keeps returning all-zeros arrays until reaching the last possible index. The current compression algorithm treats the zero-value in a sparse matrix like any other value.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ReaderColumnSelectionSparseTransposed(MatrixBlock data, int[] colIndexes)` Reader of sparse matrix blocks for compression.

  - ### Method Summary

    - ### Methods inherited from class org.apache.sysds.runtime.compress.readers.ReaderColumnSelection

      `createCompressedReader, createReader, getCurrentRowIndex, nextRow`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ReaderColumnSelectionSparseTransposed

          public ReaderColumnSelectionSparseTransposed(MatrixBlock data,
                                                       int[] colIndexes)

      Reader of sparse matrix blocks for compression. This reader should not be used if the input data is not transposed and sparse
      Parameters:
        `data` - The transposed and sparse matrix
        `colIndexes` - The column indexes to combine

Copyright © 2021 The Apache Software Foundation. All rights reserved.