Package jline.api.mdd

Class MddLocalMatrix

java.lang.Object
jline.api.mdd.MddLocalMatrix

public class MddLocalMatrix extends Object
A local rate matrix W_k^e of the Kronecker descriptor, held row-compressed.

The aggregation only ever walks a row of W and needs its row sums (the local enabling rates lambda_k^e), so the rows are stored as parallel column/value arrays rather than as a general sparse matrix. Duplicate triplets are summed when the matrix is built, so a caller may emit the same (i,j) more than once.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Incremental triplet builder; duplicate entries are accumulated.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int[][]
    cols[i] holds the column indices of the nonzeros of row i.
    final int
    Order of the (square) local matrix, i.e.
    final int
    Total number of stored nonzeros.
    final double[]
    rowSum[i] is the local enabling rate lambda[i].
    final double[][]
    vals[i] holds the values of the nonzeros of row i, aligned with cols[i].
  • Method Summary

    Modifier and Type
    Method
    Description
    identity(int dim)
    The identity of the given order, used for a level an event does not touch.

    Methods inherited from class java.lang.Object

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

    • dim

      public final int dim
      Order of the (square) local matrix, i.e. the level domain.
    • cols

      public final int[][] cols
      cols[i] holds the column indices of the nonzeros of row i.
    • vals

      public final double[][] vals
      vals[i] holds the values of the nonzeros of row i, aligned with cols[i].
    • rowSum

      public final double[] rowSum
      rowSum[i] is the local enabling rate lambda[i].
    • nnz

      public final int nnz
      Total number of stored nonzeros.
  • Method Details

    • identity

      public static MddLocalMatrix identity(int dim)
      The identity of the given order, used for a level an event does not touch.