Package jline.api.mdd
Class MddLocalMatrix
java.lang.Object
jline.api.mdd.MddLocalMatrix
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 ClassesModifier and TypeClassDescriptionstatic classIncremental triplet builder; duplicate entries are accumulated. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int[][]cols[i] holds the column indices of the nonzeros of row i.final intOrder of the (square) local matrix, i.e.final intTotal 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 TypeMethodDescriptionstatic MddLocalMatrixidentity(int dim) The identity of the given order, used for a level an event does not touch.
-
Field Details
-
dim
public final int dimOrder of the (square) local matrix, i.e. the level domain. -
cols
public final int[][] colscols[i] holds the column indices of the nonzeros of row i. -
vals
public final double[][] valsvals[i] holds the values of the nonzeros of row i, aligned with cols[i]. -
rowSum
public final double[] rowSumrowSum[i] is the local enabling rate lambda[i]. -
nnz
public final int nnzTotal number of stored nonzeros.
-
-
Method Details
-
identity
The identity of the given order, used for a level an event does not touch.
-