STSinvertSetMatStructure

Sets an internal MatStructure attribute to indicate which is the relation of the sparsity pattern of the two matrices A and B constituting the generalized eigenvalue problem. This function has no effect in the case of standard eigenproblems.

Synopsis

#include "slepcst.h" 
int STSinvertSetMatStructure(ST st,MatStructure str)
Collective on ST

Input Parameters

st - the spectral transformation context
str - either SAME_NONZERO_PATTERN, DIFFERENT_NONZERO_PATTERN or SUBSET_NONZERO_PATTERN

Options Database Key

-st_sinvert_same_pattern - Indicates A and B have the same nonzero pattern
-st_sinvert_different_pattern - Indicates A and B have different nonzero pattern
-st_sinvert_subset_pattern - Indicates B's nonzero pattern is a subset of B's

Note

By default, the sparsity patterns are assumed to be different. If the patterns are equal or a subset then it is recommended to set this attribute for efficiency reasons (in particular, for internal MatAXPY() operations).

See Also

STSetOperators(), MatAXPY()

Level:advanced
Location:
src/st/impls/sinvert/sinvert.c
Index of all ST routines
Table of Contents for all manual pages
Index of all manual pages