TaoTermSumGetNumberTerms#
Get the number of terms in the sum
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoTermSumGetNumberTerms(TaoTerm term, PetscInt *n_terms)
Not collective
Input Parameter#
term - a
TaoTermof typeTAOTERMSUM
Output Parameter#
n_terms - the number of terms that will be in the sum
See Also#
TaoTerm: composable objective function terms,
TaoTerm,
TAOTERMSUM,
TaoTermSumSetNumberTerms()
Level#
developer
Location#
Examples#
src/tao/unconstrained/tutorials/elastic_net_regularization.c
Implementations#
TaoTermSumGetNumberTerms_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