TaoTermSumSetTerm#
Set a term in a sum of terms
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoTermSumSetTerm(TaoTerm sumterm, PetscInt index, const char prefix[], PetscReal scale, TaoTerm term, Mat map)
Collective
Input Parameters#
sumterm - a
TaoTermof typeTAOTERMSUMindex - a number \(0 \leq i < n\), where \(n\) is the number of terms in
TaoTermSumSetNumberTerms()prefix - (optional) the prefix used for configuring the term (if
NULL,term_x_will be the prefix, e.g. “term_0_”, “term_1_”, etc.)scale - the coefficient scaling the term in the sum
term - the
TaoTermto be set inTAOTERMSUMmap - (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,
TaoTermSumGetTerm(),
TaoTermSumAddTerm()
Level#
developer
Location#
Implementations#
TaoTermSumSetTerm_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