MatLMVMSetJ0Diag#
Allows the user to define a vector V such that J0 = diag(V).
Synopsis#
#include "petscksp.h"
PetscErrorCode MatLMVMSetJ0Diag(Mat B, Vec V)
Input Parameters#
B - An LMVM-type matrix
V - Vector that defines the diagonal of the initial Jacobian: values are copied, V is not referenced
Note#
If the sizes of B
have not been specified (using MatSetSizes()
or MatSetLayouts()
) before MatLMVMSetJ0Diag()
is
called, the rows and columns of B
will each have the size and layout of V
, and these sizes will be final.
See Also#
KSP: Linear System Solvers, LMVM Matrices, MATLMVM
, MatLMVMSetScale()
, MatLMVMSetJ0()
Level#
advanced
Location#
src/ksp/ksp/utils/lmvm/lmvmutils.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages