krypy.recycling.generators - generators for deflation vector candidates

class krypy.recycling.generators.RitzExtremal(max_vectors=inf)

Bases: krypy.recycling.generators._RitzSubsetsGenerator

Successively returns the extremal Ritz values.

For self-adjoint problems, the indices of the minimal negative, maximal negative, minimal positive and maximal positive Ritz values are returned.

For non-self-adjoint problems, only the indices of the Ritz values of smallest and largest magnitude are returned.

generate(ritz, remaining_subset)
class krypy.recycling.generators.RitzSmall(max_vectors=inf)

Bases: krypy.recycling.generators._RitzSubsetsGenerator

Successively returns the Ritz value of smallest magnitude.

generate(ritz, remaining_subset)
class krypy.recycling.generators._RitzSubsetsGenerator

Abstract base class for the generation of subset generation.

generate(ritz, remaining_subset)

Returns a list of subsets with indices of Ritz vectors that are considered for deflation.