Class CompRowMatrixUtils

java.lang.Object
ubic.gemma.core.datastructure.sparse.CompRowMatrixUtils

public class CompRowMatrixUtils extends Object
Utilities for CompRowMatrix.
Author:
poirigui
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static no.uib.cipr.matrix.sparse.CompRowMatrix
    selectColumns(no.uib.cipr.matrix.sparse.CompRowMatrix matrix, int[] columns)
    Select the specified columns from a compressed row matrix.
    static no.uib.cipr.matrix.sparse.CompRowMatrix
    selectRows(no.uib.cipr.matrix.sparse.CompRowMatrix matrix, int[] rows)
    Select the specified rows from a compressed row matrix.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CompRowMatrixUtils

      public CompRowMatrixUtils()
  • Method Details

    • selectRows

      public static no.uib.cipr.matrix.sparse.CompRowMatrix selectRows(no.uib.cipr.matrix.sparse.CompRowMatrix matrix, int[] rows)
      Select the specified rows from a compressed row matrix.
    • selectColumns

      public static no.uib.cipr.matrix.sparse.CompRowMatrix selectColumns(no.uib.cipr.matrix.sparse.CompRowMatrix matrix, int[] columns)
      Select the specified columns from a compressed row matrix.

      If the requested columns are sorted, the method will perform a more efficient binary search by narrowing down the range for locating columns. If in addition, the requested columns are unique, this method will be able to finish early when it reaches the end of the search range.