TaoTermSumSetNumberTerms#
Set the number of terms in the sum
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoTermSumSetNumberTerms(TaoTerm term, PetscInt n_terms)
Collective
Input Parameters#
term - a
TaoTermof typeTAOTERMSUMn_terms - the number of terms that will be in the sum
Note#
If n_terms is smaller than the current number of terms, the trailing terms will be dropped.
See Also#
TaoTerm: composable objective function terms,
TaoTerm,
TAOTERMSUM,
TaoTermSumGetNumberTerms()
Level#
developer
Location#
Implementations#
TaoTermSumSetNumberTerms_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