VecNestGetTaoTermSumParameters#
A wrapper around VecNestGetSubVec() for TAOTERMSUM.
Synopsis#
#include "petsctao.h"
PetscErrorCode VecNestGetTaoTermSumParameters(Vec params, PetscInt index, Vec *subparams)
Not collective
Input Parameters#
params - a
VECNESTthat has one nested vector for each term of aTAOTERMSUMindex - the index of a term
Output Parameter#
subparams - the parameters of the internal terms of
TAOTERMSUM. (may beNULL)
Note#
VecNestGetSubVec() cannot return NULL for the subvec. If params was
created by TaoTermSumParametersPack(), then any NULL subvecs that were passed
to that function will be returned NULL by this function.
See Also#
TaoTerm: composable objective function terms,
TaoTerm,
TAOTERMSUM,
TaoTermSumParametersPack(),
TaoTermSumParametersUnpack(),
VECNEST,
VecNestGetSubVec()
Level#
intermediate
Location#
Examples#
src/tao/unconstrained/tutorials/elastic_net_regularization.c
Index of all TaoTerm routines
Table of Contents for all manual pages
Index of all manual pages