Class DoubleMatrix3D<R,C,S>

java.lang.Object
ubic.basecode.dataStructure.matrix.AbstractMatrix3D<R,C,S,Double>
ubic.basecode.dataStructure.matrix.DoubleMatrix3D<R,C,S>
Type Parameters:
R - Row label type
C - Column label type
S - Slice label type
All Implemented Interfaces:
Matrix3D<R,C,S,Double>
Direct Known Subclasses:
DenseDouble3dMatrix

public abstract class DoubleMatrix3D<R,C,S> extends AbstractMatrix3D<R,C,S,Double>
TODO Document Me
Author:
Xwan
  • Field Details

  • Constructor Details

    • DoubleMatrix3D

      public DoubleMatrix3D()
  • Method Details

    • get

      public abstract double get(int slice, int row, int column)
    • getColObj

      public abstract Double[][] getColObj(int col)
    • getColumn

      public abstract double[][] getColumn(int column)
    • getColumnByName

      public double[][] getColumnByName(C col)
      Parameters:
      s - String
      Returns:
      double[]
    • getRow

      public abstract double[][] getRow(int row)
    • getRowByName

      public double[][] getRowByName(R row)
      Parameters:
      s - String
      Returns:
      double[]
    • getRowObj

      public abstract Double[][] getRowObj(int row)
    • getSlice

      public abstract double[][] getSlice(int slice)
    • getSliceByName

      public double[][] getSliceByName(S slice)
    • getSliceObj

      public abstract Double[][] getSliceObj(int slice)
    • isMissing

      public abstract boolean isMissing(int slice, int row, int col)
      Description copied from interface: Matrix3D
      Check if the value at a given index is missing.
      Specified by:
      isMissing in interface Matrix3D<R,C,S,Double>
      Specified by:
      isMissing in class AbstractMatrix3D<R,C,S,Double>
      Parameters:
      slice -
      row -
      col -
      Returns:
      true if the value is missing, false otherwise.
    • rows

      public abstract int rows()
      Description copied from interface: Matrix3D
      Get the number of rows the matrix has
      Specified by:
      rows in interface Matrix3D<R,C,S,Double>
      Specified by:
      rows in class AbstractMatrix3D<R,C,S,Double>
      Returns:
      int
    • set

      public abstract void set(int x, int y, int z, double value)
    • setQuick

      public abstract void setQuick(int slice, int row, int column, double c)
      Parameters:
      c -
      j -
      i -
    • slices

      public abstract int slices()
      Specified by:
      slices in interface Matrix3D<R,C,S,Double>
      Specified by:
      slices in class AbstractMatrix3D<R,C,S,Double>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • viewColumn

      public abstract DoubleMatrix2D viewColumn(int column)
    • viewRow

      public abstract DoubleMatrix2D viewRow(int slice)
      Parameters:
      j -
      Returns:
    • viewSlice

      public abstract DoubleMatrix2D viewSlice(int slice)