finesse.simulations.sparse.solver.SparseSolver

Overview

class finesse.simulations.sparse.solver.SparseSolver(matrix_type, unicode name, list nodes, FrequencyContainer optical_frequencies, dict signal_frequencies, bool is_signal_matrix, bool forced_refill, dict node_aliases, int num_optical_homs)

Bases: HOMSolver

This class overrides the BaseSolver and adds the features required to use a sparse (compressed column, CCS) matrix. The type of sparse solver is not assumed here and must be provided by the matrix_type argument. This should be inherited and the matrix type provided for specific linear algebra solvers.

Notes

This is the original solver used in Finesse 3.

Properties

SparseSolver.M

A weak reference to the underlying Matrix object.

Methods

SparseSolver.__init__(*args, **kwargs)

SparseSolver.assign_noise_operators(self, ...)

SparseSolver.assign_operators(self, ...)

SparseSolver.clear_rhs(self)

SparseSolver.construct(self)

SparseSolver.destruct(self)

This is called when finishing and unbuilding the simulation.

SparseSolver.fill_noise_inputs(self)

SparseSolver.fill_rhs(self)

SparseSolver.initial_fill(self)

SparseSolver.print_matrix(self)

SparseSolver.refill(self)

SparseSolver.refill_rhs(self)

SparseSolver.set_source(self, node, ...)