Class StochasticForests.SparseMatrix

  • Enclosing class:
    StochasticForests

    private class StochasticForests.SparseMatrix
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int num_cols  
      (package private) int num_nonzero_values  
      (package private) int num_rows  
      (package private) double[][] sm  
    • Constructor Summary

      Constructors 
      Constructor Description
      SparseMatrix()  
      SparseMatrix​(int num_rows, int num_cols)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double coeff​(int row, int col)  
      void insert​(int row, int col, double value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • num_rows

        int num_rows
      • num_cols

        int num_cols
      • num_nonzero_values

        int num_nonzero_values
      • sm

        double[][] sm
    • Constructor Detail

      • SparseMatrix

        public SparseMatrix()
      • SparseMatrix

        public SparseMatrix​(int num_rows,
                            int num_cols)
    • Method Detail

      • coeff

        public double coeff​(int row,
                            int col)
      • insert

        public void insert​(int row,
                           int col,
                           double value)