TaoTermSumGetTerm#
Get the data for a term in a TAOTERMSUM
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoTermSumGetTerm(TaoTerm sumterm, PetscInt index, const char **prefix, PetscReal *scale, TaoTerm *term, Mat *map)
Not collective
Input Parameters#
sumterm - a
TaoTermof typeTAOTERMSUMindex - a number \(0 \leq i < n\), where \(n\) is the number of terms in
TaoTermSumGetNumberTerms()
Output Parameters#
prefix - (optional) the prefix used for configuring the term
scale - (optional) the coefficient scaling the term in the sum
term - the
TaoTermat given index ofTAOTERMSUMmap - (optional) a map from the
TAOTERMSUMsolution space to thetermsolution space; ifNULLthe map is assumed to be the identity
See Also#
TaoTerm: composable objective function terms,
TaoTerm,
TAOTERMSUM,
TaoTermSumSetTerm(),
TaoTermSumAddTerm()
Level#
developer
Location#
Examples#
src/tao/unconstrained/tutorials/elastic_net_regularization.c
Implementations#
TaoTermSumGetTerm_Sum() in src/tao/term/impls/sum/taotermsum.c
Index of all TaoTerm routines
Table of Contents for all manual pages
Index of all manual pages