Class RateBasedPackedColumn.SparseJacobian

java.lang.Object
neqsim.process.equipment.distillation.RateBasedPackedColumn.SparseJacobian
Enclosing class:
RateBasedPackedColumn

private static class RateBasedPackedColumn.SparseJacobian extends Object
Internal sparse Jacobian assembled by the equation-oriented column solver.
Version:
1.0
Author:
NeqSim
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    Column count.
    private final int
    Row count.
    private final Map<Integer, Map<Integer,Double>>
    Sparse matrix values keyed by row then column.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    SparseJacobian(int rows, int columns)
    Create a sparse Jacobian.
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    set(int row, int column, double value)
    Set a sparse matrix entry.
    private Jama.Matrix
    Convert the sparse matrix to a dense matrix for the available linear solver.

    Methods inherited from class Object

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

    • rows

      private final int rows
      Row count.
    • columns

      private final int columns
      Column count.
    • values

      private final Map<Integer, Map<Integer,Double>> values
      Sparse matrix values keyed by row then column.
  • Constructor Details

    • SparseJacobian

      private SparseJacobian(int rows, int columns)
      Create a sparse Jacobian.
      Parameters:
      rows - number of residual rows
      columns - number of unknown columns
  • Method Details

    • set

      private void set(int row, int column, double value)
      Set a sparse matrix entry.
      Parameters:
      row - row index
      column - column index
      value - matrix value
    • toDenseMatrix

      private Jama.Matrix toDenseMatrix()
      Convert the sparse matrix to a dense matrix for the available linear solver.
      Returns:
      dense matrix representation